mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
docs: add comment
This commit is contained in:
parent
716c48f3b4
commit
514f5dd8a3
@ -223,6 +223,7 @@ export class AttachmentService extends BaseService<Attachment> {
|
||||
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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user