mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
added "delete note revisions" search action
This commit is contained in:
@@ -75,6 +75,8 @@ function eraseNoteRevisions(noteRevisionIdsToErase) {
|
||||
return;
|
||||
}
|
||||
|
||||
log.info(`Removing note revisions: ${JSON.stringify(noteRevisionIdsToErase)}`);
|
||||
|
||||
sql.executeMany(`DELETE FROM note_revisions WHERE noteRevisionId IN (???)`, noteRevisionIdsToErase);
|
||||
sql.executeMany(`UPDATE entity_changes SET isErased = 1 WHERE entityName = 'note_revisions' AND entityId IN (???)`, noteRevisionIdsToErase);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user