From 4b78f52e8c7742952575d1d04cae1d1cff908b40 Mon Sep 17 00:00:00 2001 From: philc Date: Tue, 24 Dec 2024 13:17:53 +0100 Subject: [PATCH] update log to just highlight when the menagedone in token is done --- apxtri/middlewares/isAuthenticated.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);