duplicate (single) note

This commit is contained in:
zadam
2019-10-19 12:36:16 +02:00
parent 00bb1236ce
commit b16c2d19b6
16 changed files with 147 additions and 70 deletions

View File

@@ -180,6 +180,12 @@ async function changeTitle(req) {
await note.save();
}
async function duplicateNote(req) {
const {noteId, parentNoteId} = req.params;
return await noteService.duplicateNote(noteId, parentNoteId);
}
module.exports = {
getNote,
updateNote,
@@ -190,5 +196,6 @@ module.exports = {
setNoteTypeMime,
getChildren,
getRelationMap,
changeTitle
changeTitle,
duplicateNote
};