fix updating non-text notes

This commit is contained in:
zadam
2023-05-07 11:20:51 +02:00
parent 371f174756
commit 4d5612e845
2 changed files with 9 additions and 9 deletions

View File

@@ -55,10 +55,10 @@ function createNote(req) {
}
function updateNoteData(req) {
const {content, attachments} = req.body;
const {content} = req.body;
const {noteId} = req.params;
return noteService.updateNoteData(noteId, content, attachments);
return noteService.updateNoteData(noteId, content);
}
function deleteNote(req) {