Ver Fonte

use finished

reiji-h há 1 ano atrás
pai
commit
cfd4dbe3d2
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      apps/app/src/server/service/export.js

+ 1 - 1
apps/app/src/server/service/export.js

@@ -355,7 +355,7 @@ class ExportService {
     // 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 stream;
+    await finished(stream);
 
     logger.info(`zipped GROWI data into ${zipFile} (${archive.pointer()} bytes)`);