fix broken image sync

This commit is contained in:
azivner
2018-12-20 19:51:03 +01:00
parent 321d0e8d64
commit 14bd5d301d
2 changed files with 2 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ async function updateEntity(sync, entity, sourceId) {
}
function deserializeNoteContentBuffer(note) {
if (note.type === 'file') {
if (note.type === 'file' || note.type === 'image') {
note.content = new Buffer(note.content, 'binary');
}
}