"duplicate note" now duplicates whole note subtree instead of just individual note

This commit is contained in:
zadam
2020-11-19 14:06:32 +01:00
parent 8ec476ba96
commit 314e0a453f
7 changed files with 65 additions and 20 deletions

View File

@@ -187,10 +187,10 @@ function changeTitle(req) {
return note;
}
function duplicateNote(req) {
function duplicateSubtree(req) {
const {noteId, parentNoteId} = req.params;
return noteService.duplicateNote(noteId, parentNoteId);
return noteService.duplicateSubtree(noteId, parentNoteId);
}
module.exports = {
@@ -204,5 +204,5 @@ module.exports = {
setNoteTypeMime,
getRelationMap,
changeTitle,
duplicateNote
duplicateSubtree
};