delete attributes when deleting note

This commit is contained in:
azivner
2018-08-15 15:27:22 +02:00
parent 3204291463
commit 4513651e12
5 changed files with 35 additions and 2 deletions

View File

@@ -250,6 +250,11 @@ async function deleteNote(branch) {
for (const childBranch of await note.getChildBranches()) {
await deleteNote(childBranch);
}
for (const attribute of await note.getOwnedAttributes()) {
attribute.isDeleted = true;
await attribute.save();
}
}
}