Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Merge branch 'stable'
zadam4c7c3105e8be
diff --cc src/services/notes.jsindex 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_revisionsSET isErased = 1,- title = NULL+ title = NULL,+ contentLength = 0WHERE 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) {