Skip to content

Commit

Permalink
Merge of #9481
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Dec 12, 2024
2 parents 0e5b654 + 6920dba commit bfb7828
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions apps/app/src/server/service/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,12 @@ class ExportService {

const output = fs.createWriteStream(zipFile);

// pipe archive data to the file
const stream = pipeline(archive, output);

// finalize the archive (ie we are done appending files but streams have to finish yet)
// 'close', 'end' or 'finish' may be fired right after calling this method so register to them beforehand
archive.finalize();
await finished(stream);

// pipe archive data to the file
await pipeline(archive, output);

logger.info(`zipped GROWI data into ${zipFile} (${archive.pointer()} bytes)`);

Expand Down

0 comments on commit bfb7828

Please sign in to comment.