summaryrefslogtreecommitdiffstats
path: root/models/wekanCreator.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-01-18 16:01:02 +0200
committerLauri Ojansivu <x@xet7.org>2020-01-18 16:01:02 +0200
commit9b905c2833d54cf34d1875148075b2bf756d943a (patch)
treea6c06bf2ac4c7ee1ddd4975ebcb3924c08afda98 /models/wekanCreator.js
parent7efbf30af62182f345f401b1e68e273199fc6939 (diff)
downloadwekan-9b905c2833d54cf34d1875148075b2bf756d943a.tar.gz
wekan-9b905c2833d54cf34d1875148075b2bf756d943a.tar.bz2
wekan-9b905c2833d54cf34d1875148075b2bf756d943a.zip
Try to fix Node 12 Buffer() deprecation errors.
Thanks to xet7 !
Diffstat (limited to 'models/wekanCreator.js')
-rw-r--r--models/wekanCreator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/wekanCreator.js b/models/wekanCreator.js
index 26d34170..9914f817 100644
--- a/models/wekanCreator.js
+++ b/models/wekanCreator.js
@@ -441,7 +441,7 @@ export class WekanCreator {
});
} else if (att.file) {
file.attachData(
- new Buffer.alloc(att.file, 'base64'),
+ Buffer.from(att.file, 'base64'),
{
type: att.type,
},