Merge branch fix/download-proof-zip
into dev (#159)
This task complete [Notion #272](https://www.notion.so/smart-chain/Modifier-le-t-l-chargement-de-la-preuve-de-d-pot-aa7be8e651f14db49856f20d04d71824?pvs=4).
This commit is contained in:
commit
a20f17dc0b
@ -93,13 +93,13 @@ export default class OfficeFoldersController extends ApiController {
|
||||
(async () => {
|
||||
const data = await this.filesService.download(uid);
|
||||
if (!data?.buffer) return;
|
||||
zip.addFile(`${uid}-${data.file.file_name}`, data.buffer);
|
||||
zip.addFile(`Documents du client/${uid}-${data.file.file_name}`, data.buffer);
|
||||
})()
|
||||
|
||||
const uids: string[] = folderFilesUid.filter((uid): uid is string => uid !== undefined);
|
||||
|
||||
const zip = new Zip();
|
||||
zip.addFile(`${uid}-certificat-de-dépôt.pdf`, anchoringProof);
|
||||
zip.addFile("Certificat de dépôt du dossier.pdf", anchoringProof);
|
||||
await Promise.allSettled(
|
||||
uids.map(addFileToZip(zip))
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user