mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 18:45:57 +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) => {
|
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);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user