revisions_number_limit

pull/391/head
SiriusXT 2024-09-14 16:00:18 +07:00
parent 0a9e76abb7
commit fdf57b6cfa
1 changed files with 1 additions and 1 deletions

@ -114,7 +114,7 @@ function eraseRevision(req: Request) {
}
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 => {
becca.getNote(row.noteId)?.eraseExcessRevisionSnapshots()
});