Remember to clean up after file stream combine
This commit is contained in:
parent
86f274e6d2
commit
1246883c0b
@ -70,6 +70,7 @@ module.exports = exports = async (message, di) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const stat = await fs.promises.stat(combined_file.path)
|
const stat = await fs.promises.stat(combined_file.path)
|
||||||
|
await fs.promises.unlink(combined_file.path)
|
||||||
|
|
||||||
node.uploaded_file_id = new_file.id
|
node.uploaded_file_id = new_file.id
|
||||||
node.size = stat.size
|
node.size = stat.size
|
||||||
|
Loading…
Reference in New Issue
Block a user