mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
ETAPI delete/patch, refactoring
This commit is contained in:
@@ -73,9 +73,7 @@ function deleteNote(req) {
|
||||
|
||||
const taskContext = TaskContext.getInstance(taskId, 'delete-notes');
|
||||
|
||||
for (const branch of note.getParentBranches()) {
|
||||
noteService.deleteBranch(branch, deleteId, taskContext);
|
||||
}
|
||||
noteService.deleteNote(note, deleteId, taskContext);
|
||||
|
||||
if (eraseNotes) {
|
||||
noteService.eraseNotesWithDeleteId(deleteId);
|
||||
|
||||
Reference in New Issue
Block a user