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