Skip to content

Commit 04633bd

Browse files
committed
set clip type from the incoming param
1 parent 97219aa commit 04633bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/api/clipper.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ async function addClipping(req) {
4747
}
4848

4949
async function createNote(req) {
50-
const {title, content, pageUrl, images} = req.body;
50+
const {title, content, pageUrl, images, clipType} = req.body;
5151

5252
const todayNote = await dateNoteService.getDateNote(dateUtils.localNowDate());
5353

5454
const {note} = await noteService.createNote(todayNote.noteId, title, content);
5555

56-
await note.setLabel('clipType', 'note');
56+
await note.setLabel('clipType', clipType);
5757

5858
if (pageUrl) {
5959
await note.setLabel('pageUrl', pageUrl);

0 commit comments

Comments
 (0)