serialize binary note content into base64, incremented sync version

This commit is contained in:
azivner
2019-01-03 22:13:58 +01:00
parent d72efd2450
commit fec3e47eb8
3 changed files with 3 additions and 3 deletions

View File

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