From 1246883c0b1b9e9b7d7938230c32d02e3a57f969 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Sun, 29 Nov 2020 11:54:42 -0600 Subject: [PATCH] Remember to clean up after file stream combine --- app/ws/routes/fs.flush.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/ws/routes/fs.flush.js b/app/ws/routes/fs.flush.js index 759e824..e19f163 100644 --- a/app/ws/routes/fs.flush.js +++ b/app/ws/routes/fs.flush.js @@ -70,6 +70,7 @@ module.exports = exports = async (message, di) => { }) const stat = await fs.promises.stat(combined_file.path) + await fs.promises.unlink(combined_file.path) node.uploaded_file_id = new_file.id node.size = stat.size