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