mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
refactor(dev): use es6-string-html for some of the SQL statements (closes #274)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user