Merge pull request #7556 from overleaf/em-finish-node-16

Finish Node 16 upgrade

GitOrigin-RevId: 03e5a54e4b17f43142ff78f5b4cca4d0dbefe6eb
This commit is contained in:
Eric Mc Sween
2022-04-14 08:03:17 +00:00
committed by Copybot
parent 90303f2f8c
commit eb4764e777
28 changed files with 51 additions and 45 deletions
@@ -238,7 +238,7 @@ module.exports = HttpController = {
UpdatesManager.exportProject(
project_id,
function (err, { updates, userIds }, confirmWrite) {
const abortStreaming = req.aborted || res.finished || res.destroyed
const abortStreaming = req.destroyed || res.finished || res.destroyed
if (abortStreaming) {
// Tell the producer to stop emitting data
if (confirmWrite) confirmWrite(new Error('stop'))