Skip to content

Build your personal knowledge base with Trilium Notes

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

Panagiotis Papadopoulos0f0e55deb24f
diff --git a/src/routes/api/clipper.ts b/src/routes/api/clipper.ts
index 4d821e4803..0b7b315aa9 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 e65d201132..0e4cf11368 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();
});