From 0f0e55deb24feb7a454d6c62bc663e544f09953e Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Wed, 5 Mar 2025 18:09:44 +0100 Subject: [PATCH] chore(lint): fix lint issues in src/routes --- src/routes/api/clipper.ts | 4 ++-- src/routes/api/revisions.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/api/clipper.ts b/src/routes/api/clipper.ts index 4d821e480..0b7b315aa 100644 --- a/src/routes/api/clipper.ts +++ b/src/routes/api/clipper.ts @@ -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 }; diff --git a/src/routes/api/revisions.ts b/src/routes/api/revisions.ts index e65d20113..0e4cf1136 100644 --- a/src/routes/api/revisions.ts +++ b/src/routes/api/revisions.ts @@ -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(); });