Skip to content

Commit

Permalink
๐Ÿ› Fix downloading zip folder (#434)
Browse files Browse the repository at this point in the history
* ๐Ÿ›Fix downloading zip folder
Do not await finalizing of th archive creation
Just run clean-up process after
  • Loading branch information
shepilov committed Mar 11, 2024
1 parent 7281043 commit 3b3bb08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tdrive/backend/node/src/services/documents/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ export class DocumentsService {
zlib: { level: 9 },
});

archive.on('error', error => {
archive.on("error", error => {
this.logger.error("error while creating ZIP file: ", error);
});

Expand All @@ -938,7 +938,8 @@ export class DocumentsService {
}
}

await archive.finalize();
//TODO[ASH] why do we need this call??
archive.finalize();

return archive;
};
Expand Down

0 comments on commit 3b3bb08

Please sign in to comment.