refactor(dev): use es6-string-html for some of the SQL statements (closes #274)

This commit is contained in:
Elian Doran
2025-04-01 23:30:21 +03:00
parent 7a879d7cc8
commit ba506c9c10
27 changed files with 71 additions and 71 deletions

View File

@@ -83,7 +83,7 @@ function getRecentNotes(activeNoteId: string) {
// Get the total number of notes
function getNotesCount(req: Request) {
const notesCount = sql.getRow(
`SELECT COUNT(*) AS count FROM notes WHERE isDeleted = 0;`,
/*sql*/`SELECT COUNT(*) AS count FROM notes WHERE isDeleted = 0;`,
) as { count: number };
return notesCount.count;
}