diff --git a/apxtri/middlewares/isAuthenticated.js b/apxtri/middlewares/isAuthenticated.js index 616055b..5c1a14b 100755 --- a/apxtri/middlewares/isAuthenticated.js +++ b/apxtri/middlewares/isAuthenticated.js @@ -42,9 +42,10 @@ const isAuthenticated = async (req, res, next) => { let menagedone = fs.existsSync( `../adminapi/tmp/tokens/menagedone${currentday}` ); - if (menagedone) console.log(Date.now(),`menagedone${currentday} was it done today?:${menagedone}`); + //if (menagedone) console.log(Date.now(),`menagedone${currentday} was it done today?:${menagedone}`); if (!menagedone) { // clean oldest + console.log(Date.now(),`menagedone${currentday} will be done now`) const tsday = dayjs().valueOf(); // now in timestamp format glob.sync(`../adminapi/tmp/tokens/menagedone*`).forEach((f) => { fs.removeSync(f);