Shun Miyazawa 1 год назад
Родитель
Сommit
79d4ccd4bc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/app/src/server/service/export.js

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

@@ -350,7 +350,7 @@ class ExportService {
     const output = fs.createWriteStream(zipFile);
 
     // pipe archive data to the file
-    const stream = pipeline(archive, output);
+    const stream = await 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