From 514f5dd8a3b758562768fcd9a0472c15b96fc411 Mon Sep 17 00:00:00 2001 From: Mohamed Marrouchi Date: Mon, 13 Jan 2025 18:00:35 +0100 Subject: [PATCH] docs: add comment --- api/src/attachment/services/attachment.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/attachment/services/attachment.service.ts b/api/src/attachment/services/attachment.service.ts index c8975c78..d0eb04d3 100644 --- a/api/src/attachment/services/attachment.service.ts +++ b/api/src/attachment/services/attachment.service.ts @@ -223,6 +223,7 @@ export class AttachmentService extends BaseService { await new Promise((resolve, reject) => { const writeStream = fs.createWriteStream(filePath); file.pipe(writeStream); + // @TODO: Calc size here? writeStream.on('finish', resolve); writeStream.on('error', reject); });