From 04633bdf3a112704ad2813e367f672bb9553e408 Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 19 Jul 2019 21:03:47 +0200 Subject: [PATCH] set clip type from the incoming param --- src/routes/api/clipper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/api/clipper.js b/src/routes/api/clipper.js index 8b6060c4d..07122d3c4 100644 --- a/src/routes/api/clipper.js +++ b/src/routes/api/clipper.js @@ -47,13 +47,13 @@ async function addClipping(req) { } async function createNote(req) { - const {title, content, pageUrl, images} = req.body; + const {title, content, pageUrl, images, clipType} = req.body; const todayNote = await dateNoteService.getDateNote(dateUtils.localNowDate()); const {note} = await noteService.createNote(todayNote.noteId, title, content); - await note.setLabel('clipType', 'note'); + await note.setLabel('clipType', clipType); if (pageUrl) { await note.setLabel('pageUrl', pageUrl);