basic text preview implemented

This commit is contained in:
zadam
2020-04-06 22:08:54 +02:00
parent 5c0355718f
commit 3772d97dfa
7 changed files with 276 additions and 167 deletions

View File

@@ -544,22 +544,18 @@ async function deleteBranch(branch, deleteId, taskContext) {
note.deleteId = deleteId;
await note.save();
console.log("Deleting note", note.noteId);
log.info("Deleting note " + note.noteId);
for (const attribute of await note.getOwnedAttributes()) {
attribute.isDeleted = true;
attribute.deleteId = deleteId;
await attribute.save();
console.log("Deleting note's", note.noteId, "attribute", attribute.attributeId);
}
for (const relation of await note.getTargetRelations()) {
relation.isDeleted = true;
relation.deleteId = deleteId;
await relation.save();
console.log("Deleting note's", note.noteId, "target relation", relation.attributeId);
}
return true;