fix deprecated usage of constructor with Buffer

This commit is contained in:
Ondřej Synáček 2019-11-27 12:51:13 +01:00
parent 53ee2c1fb5
commit 34ec276de2
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ app.post('/download', async (req, res, next) => {
res
.contentType('text/calendar')
.status(200)
.send(new Buffer(ics, 'utf8'))
.send(Buffer.from(ics, 'utf8'))
} catch (err) {
next(err)
}