updated node to 12

This commit is contained in:
Danny Coates 2020-04-29 17:33:12 -07:00
parent 01110b4ec1
commit 89469e3c9c
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
5 changed files with 4646 additions and 6988 deletions

View file

@ -10,7 +10,7 @@ module.exports = async function(req, res) {
const fileStream = await storage.get(id);
let cancelled = false;
req.on('close', () => {
req.on('aborted', () => {
cancelled = true;
fileStream.destroy();
});