mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
revisions_number_limit
This commit is contained in:
parent
0a9e76abb7
commit
fdf57b6cfa
@ -114,7 +114,7 @@ function eraseRevision(req: Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function eraseAllExcessRevisions() {
|
function eraseAllExcessRevisions() {
|
||||||
let allNoteIds = sql.getRows('SELECT noteId FROM notes') as { noteId: string }[];
|
let 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