mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 02:42:27 +08:00
chore(lint): fix lint issues in src/routes
This commit is contained in:
parent
93e2515190
commit
0f0e55deb2
@ -219,9 +219,9 @@ function handshake() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function findNotesByUrl(req: Request) {
|
function findNotesByUrl(req: Request) {
|
||||||
let pageUrl = req.params.noteUrl;
|
const pageUrl = req.params.noteUrl;
|
||||||
const clipperInbox = getClipperInboxNote();
|
const clipperInbox = getClipperInboxNote();
|
||||||
let foundPage = findClippingNote(clipperInbox, pageUrl, null);
|
const foundPage = findClippingNote(clipperInbox, pageUrl, null);
|
||||||
return {
|
return {
|
||||||
noteId: foundPage ? foundPage.noteId : null
|
noteId: foundPage ? foundPage.noteId : null
|
||||||
};
|
};
|
||||||
|
@ -111,7 +111,7 @@ function eraseRevision(req: Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function eraseAllExcessRevisions() {
|
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) => {
|
allNoteIds.forEach((row) => {
|
||||||
becca.getNote(row.noteId)?.eraseExcessRevisionSnapshots();
|
becca.getNote(row.noteId)?.eraseExcessRevisionSnapshots();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user