summaryrefslogtreecommitdiffstats
path: root/models/export.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/export.js')
-rw-r--r--models/export.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/export.js b/models/export.js
index cc979ce0..69aaf619 100644
--- a/models/export.js
+++ b/models/export.js
@@ -138,7 +138,7 @@ export class Exporter {
// [Old] for attachments we only export IDs and absolute url to original doc
// [New] Encode attachment to base64
const getBase64Data = function(doc, callback) {
- let buffer = new Buffer(0);
+ let buffer = new Buffer.alloc(0);
// callback has the form function (err, res) {}
const tmpFile = path.join(
os.tmpdir(),