delete progress

This commit is contained in:
zadam
2019-10-18 23:19:16 +02:00
parent b890859025
commit 9f4ca279aa
7 changed files with 53 additions and 15 deletions

View File

@@ -78,7 +78,7 @@ async function deleteNote(req) {
const note = await repository.getNote(noteId);
const taskContext = new TaskContext(utils.randomString(10), 'delete-note');
const taskContext = TaskContext.getInstance(req.query.taskId, 'delete-notes');
for (const branch of await note.getBranches()) {
await noteService.deleteBranch(branch, taskContext);