fix: improve S3 reliability

This commit is contained in:
tdurieux
2023-08-28 12:09:58 +02:00
parent 92347fbcfb
commit 2f5d7a1089
2 changed files with 8 additions and 8 deletions

View File

@@ -106,7 +106,9 @@ export default class GitHubDownload extends GitHubBase implements SourceBase {
try {
const downloadStream = got.stream(response.url);
downloadStream.addListener("downloadProgress", (p) => (progress = p));
downloadStream.addListener("downloadProgress", async (p) => {
progress = p;
});
await storage.extractZip(originalPath, downloadStream, undefined, this);
} catch (error) {
await this.repository.updateStatus(