fix: fix zip extract

This commit is contained in:
tdurieux
2023-08-28 14:36:04 +02:00
parent d8de3f189a
commit ecfd69bd37
3 changed files with 14 additions and 9 deletions

View File

@@ -251,7 +251,12 @@ export default class S3Storage implements StorageBase {
},
maxParallel: 10,
});
pipeline(data, toS3, () => {})
pipeline(data, toS3, (err) => {
if (err) {
return reject(err);
}
resolve();
})
.on("finish", resolve)
.on("error", reject);
});