fix attachment sync

This commit is contained in:
azivner
2018-02-18 22:55:36 -05:00
parent aa2bbc6575
commit 131af9ab12
4 changed files with 24 additions and 5 deletions

View File

@@ -32,8 +32,8 @@ router.post('/upload/:parentNoteId', auth.checkApiAuthOrElectron, multer.single(
mime: file.mimetype
}, req, sourceId)).noteId;
await attributes.createAttribute(noteId, "original_file_name", originalName);
await attributes.createAttribute(noteId, "file_size", size);
await attributes.createAttribute(noteId, "original_file_name", originalName, sourceId);
await attributes.createAttribute(noteId, "file_size", size, sourceId);
res.send({
noteId: noteId