add initial data page

This commit is contained in:
Ren Amamiya
2023-04-28 08:39:12 +07:00
parent 76bdeca4ab
commit 233a5bd2ad
7 changed files with 244 additions and 212 deletions

View File

@@ -77,7 +77,7 @@ export async function countTotalChannels() {
export async function countTotalNotes() {
const db = await connect();
const result = await db.select('SELECT COUNT(*) AS "total" FROM notes;');
return result[0];
return result[0].total;
}
// get all notes