mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
docs: add comment
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user