diff --git a/lib/utils/cron-jobs.js b/lib/utils/cron-jobs.js index 4eac2212..be036f46 100644 --- a/lib/utils/cron-jobs.js +++ b/lib/utils/cron-jobs.js @@ -49,9 +49,9 @@ const clearChannels = () => { }; const clearFiles = () => { - // Remove temp audiofiles that were not auto deleted older 300 min (or CLEANUP_INTERVAL if set) from TMP_FOLDER - let maxAge = JAMBONZ_CLEANUP_INTERVAL_MINS || 300 - execSync(`/usr/local/bin/cleanup-temp-audiofiles.sh ${maxAge} ${TMP_FOLDER};`); + // Remove temp audiofiles that were not auto deleted older 300 min (or CLEANUP_INTERVAL if set) from TMP_FOLDER + let maxAge = JAMBONZ_CLEANUP_INTERVAL_MINS || 300; + execSync(`/usr/local/bin/cleanup-temp-audiofiles.sh ${maxAge} ${TMP_FOLDER};`); };