🐛 Fix downloading zip folder (#434)

* 🐛Fix downloading zip folder
Do not await finalizing of th archive creation
Just run clean-up process after
This commit is contained in:
Anton Shepilov
2024-03-11 17:49:03 +01:00
committed by GitHub
parent 7281043e8f
commit 3b3bb089e8
@@ -920,7 +920,7 @@ export class DocumentsService {
zlib: { level: 9 }, zlib: { level: 9 },
}); });
archive.on('error', error => { archive.on("error", error => {
this.logger.error("error while creating ZIP file: ", error); this.logger.error("error while creating ZIP file: ", error);
}); });
@@ -938,7 +938,8 @@ export class DocumentsService {
} }
} }
await archive.finalize(); //TODO[ASH] why do we need this call??
archive.finalize();
return archive; return archive;
}; };