bugfix: clean files only fired once

This commit is contained in:
Dave Horton
2022-03-08 18:51:45 -05:00
parent ddf00c0ddf
commit ddcbda988f

2
app.js
View File

@@ -128,7 +128,7 @@ if (process.env.JAMBONZ_CLEANUP_INTERVAL_MINS) {
const {clearFiles} = require('./lib/utils/cron-jobs');
/* cleanup orphaned files or channels every so often */
setTimeout(async() => {
setInterval(async() => {
try {
await clearFiles();
} catch (err) {