Skip to content

Build your personal knowledge base with Trilium Notes

Merge branch 'stable'

zadam4c7c3105e8be
diff --cc src/services/notes.js
index 715dc1b848,79b7c193ca..9eb23cb790
--- a/src/services/notes.js
+++ b/src/services/notes.js
@@@ -585,15 -488,10 +585,17 @@@ async function eraseDeletedNotes()
await sql.executeMany(`
UPDATE note_revisions
SET isErased = 1,
- title = NULL
+ title = NULL,
+ contentLength = 0
WHERE isErased = 0 AND noteId IN (???)`, noteIdsToErase);
+ await sql.executeMany(`
+ UPDATE attributes
+ SET name = 'deleted',
+ value = ''
+ WHERE noteId IN (???)`, noteIdsToErase);
++
+ log.info(`Erased notes: ${JSON.stringify(noteIdsToErase)}`);
}
async function duplicateNote(noteId, parentNoteId) {