mirror of
https://github.com/wekan/wekan.git
synced 2026-01-04 08:38:49 +01:00
Try to fix Node 12 Buffer() deprecation errors.
Thanks to xet7 !
This commit is contained in:
parent
7efbf30af6
commit
9b905c2833
8 changed files with 147 additions and 217 deletions
|
|
@ -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.alloc(0);
|
||||
let buffer = Buffer.from(0);
|
||||
// callback has the form function (err, res) {}
|
||||
const tmpFile = path.join(
|
||||
os.tmpdir(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue