mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 08:46:43 +01:00
basic text preview implemented
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user