docs: add comment

This commit is contained in:
Mohamed Marrouchi 2025-01-13 18:00:35 +01:00
parent 716c48f3b4
commit 514f5dd8a3

View File

@ -223,6 +223,7 @@ export class AttachmentService extends BaseService<Attachment> {
await new Promise((resolve, reject) => { await new Promise((resolve, reject) => {
const writeStream = fs.createWriteStream(filePath); const writeStream = fs.createWriteStream(filePath);
file.pipe(writeStream); file.pipe(writeStream);
// @TODO: Calc size here?
writeStream.on('finish', resolve); writeStream.on('finish', resolve);
writeStream.on('error', reject); writeStream.on('error', reject);
}); });