fix: improve token management

This commit is contained in:
tdurieux
2024-06-18 12:00:45 +02:00
parent 9271332d5b
commit 532c094388
9 changed files with 90 additions and 32 deletions
+7
View File
@@ -48,6 +48,13 @@ router.post(
const archive = archiver("zip", {});
downloadStream
.on("error", (error) => {
console.error(error);
archive.finalize();
})
.on("close", () => {
archive.finalize();
})
.pipe(Parse())
.on("entry", (entry) => {
if (entry.type === "File") {