chore(lint): fix lint issues in src/routes

This commit is contained in:
Panagiotis Papadopoulos 2025-03-05 18:09:44 +01:00
parent 93e2515190
commit 0f0e55deb2
2 changed files with 3 additions and 3 deletions

View File

@ -219,9 +219,9 @@ function handshake() {
}
function findNotesByUrl(req: Request) {
let pageUrl = req.params.noteUrl;
const pageUrl = req.params.noteUrl;
const clipperInbox = getClipperInboxNote();
let foundPage = findClippingNote(clipperInbox, pageUrl, null);
const foundPage = findClippingNote(clipperInbox, pageUrl, null);
return {
noteId: foundPage ? foundPage.noteId : null
};

View File

@ -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();
});