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

@@ -79,9 +79,12 @@ router.get('/changed', auth.checkApiAuth, wrap(async (req, res, next) => {
router.get('/notes/:noteId', auth.checkApiAuth, wrap(async (req, res, next) => {
const noteId = req.params.noteId;
const entity = await sql.getRow("SELECT * FROM notes WHERE noteId = ?", [noteId]);
sync.serializeNoteContentBuffer(entity);
res.send({
entity: await sql.getRow("SELECT * FROM notes WHERE noteId = ?", [noteId])
entity: entity
});
}));