Change Buffer to Buffer.alloc on Node v12. Try to fix Snap.

This commit is contained in:
Lauri Ojansivu 2020-01-11 13:08:29 +02:00
parent 5bece0dd1e
commit e01f4dbf13
8 changed files with 29 additions and 24 deletions

View file

@ -441,7 +441,7 @@ export class WekanCreator {
});
} else if (att.file) {
file.attachData(
new Buffer(att.file, 'base64'),
new Buffer.alloc(att.file, 'base64'),
{
type: att.type,
},