mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix sync of deleted notes
This commit is contained in:
parent
0be173a8f7
commit
d72fcefdc7
@ -364,6 +364,8 @@ async function deleteNote(branch) {
|
|||||||
// content with non-existent protected session key
|
// content with non-existent protected session key
|
||||||
// we don't reset content here, that's postponed and done later to give the user a chance to correct a mistake
|
// we don't reset content here, that's postponed and done later to give the user a chance to correct a mistake
|
||||||
await sql.execute("UPDATE notes SET isDeleted = 1 WHERE noteId = ?", [note.noteId]);
|
await sql.execute("UPDATE notes SET isDeleted = 1 WHERE noteId = ?", [note.noteId]);
|
||||||
|
// need to manually trigger sync since it's not taken care of by note save
|
||||||
|
await syncTableService.addNoteSync(note.noteId);
|
||||||
|
|
||||||
for (const noteRevision of await note.getRevisions()) {
|
for (const noteRevision of await note.getRevisions()) {
|
||||||
await noteRevision.save();
|
await noteRevision.save();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user