fix deprecated usage of constructor with Buffer
This commit is contained in:
parent
53ee2c1fb5
commit
34ec276de2
|
@ -90,7 +90,7 @@ app.post('/download', async (req, res, next) => {
|
||||||
res
|
res
|
||||||
.contentType('text/calendar')
|
.contentType('text/calendar')
|
||||||
.status(200)
|
.status(200)
|
||||||
.send(new Buffer(ics, 'utf8'))
|
.send(Buffer.from(ics, 'utf8'))
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
next(err)
|
next(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue