allow deleting notes including all the clones, closes #629

This commit is contained in:
zadam
2019-09-01 20:57:25 +02:00
parent c614bc3263
commit 8dadc7e518
5 changed files with 35 additions and 12 deletions

View File

@@ -77,7 +77,7 @@ async function deleteNote(req) {
const note = await repository.getNote(noteId);
for (const branch of await note.getBranches()) {
await noteService.deleteNote(branch);
await noteService.deleteBranch(branch);
}
}