mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
chore(lint): fix lint issues in src/routes
This commit is contained in:
@@ -111,7 +111,7 @@ function eraseRevision(req: Request) {
|
||||
}
|
||||
|
||||
function eraseAllExcessRevisions() {
|
||||
let allNoteIds = sql.getRows("SELECT noteId FROM notes WHERE SUBSTRING(noteId, 1, 1) != '_'") as { noteId: string }[];
|
||||
const allNoteIds = sql.getRows("SELECT noteId FROM notes WHERE SUBSTRING(noteId, 1, 1) != '_'") as { noteId: string }[];
|
||||
allNoteIds.forEach((row) => {
|
||||
becca.getNote(row.noteId)?.eraseExcessRevisionSnapshots();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user