Skip to content

Commit 496d955

Browse files
authored
fix: empty exported notes in the archive (#1942)
2 parents 72dff38 + 828cafd commit 496d955

File tree

3 files changed

+1420
-271
lines changed

3 files changed

+1420
-271
lines changed

lib/user/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ exports.exportMyData = (req, res) => {
101101
filenames[filename] = true
102102

103103
logger.debug('Write: ' + filename)
104-
archive.append(Buffer.from(note.content), { name: filename, date: note.lastchangeAt })
104+
archive.append(note.content, { name: filename, date: note.lastchangeAt })
105105
callback(null, null)
106106
}, function (err) {
107107
if (err) {

0 commit comments

Comments
 (0)