From aa5b00f653a566804db85dc7878f59bee410b932 Mon Sep 17 00:00:00 2001 From: Schneider Roland Date: Fri, 28 Feb 2025 06:08:28 +0100 Subject: [PATCH] fix: enable file deletion in cleanup process; update version to 1.3.0 --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b761a7f..5ac8423 100644 --- a/index.js +++ b/index.js @@ -60,7 +60,7 @@ const cleanUp = () => { const filesToDelete = group.files.slice(0, group.files.length - group.groupSize); filesToDelete.forEach(file => { console.log(new Date().toISOString() + " Deleting file: ", file); - //fs.unlinkSync(uploadPath + "/" + file); + fs.unlinkSync(uploadPath + "/" + file); }); } }); diff --git a/package.json b/package.json index 15b65ff..a6e16f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-http-file-api", - "version": "1.1.0", + "version": "1.3.0", "main": "index.js", "scripts": { "start": "node index.js",