mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 18:25:51 +01:00
moving deleteNote and deleteBranch into entities to make them accessible to scripts, #2792
This commit is contained in:
@@ -194,7 +194,7 @@ function deleteBranch(req) {
|
||||
const taskContext = TaskContext.getInstance(req.query.taskId, 'delete-notes');
|
||||
|
||||
const deleteId = utils.randomString(10);
|
||||
const noteDeleted = noteService.deleteBranch(branch, deleteId, taskContext);
|
||||
const noteDeleted = branch.deleteBranch(deleteId, taskContext);
|
||||
|
||||
if (eraseNotes) {
|
||||
noteService.eraseNotesWithDeleteId(deleteId);
|
||||
|
||||
Reference in New Issue
Block a user