From 0a4dda4d73aa904120fde28da9816fb7052bd681 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Sat, 6 Nov 2021 07:14:27 -0500 Subject: [PATCH] Adjust session expiration --- backend/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app.js b/backend/app.js index 707df10..0c7f1d7 100644 --- a/backend/app.js +++ b/backend/app.js @@ -180,7 +180,7 @@ app.get('/api/users', (req, res, next) => { app.get('/api/getuser', (req, res, next) => { console.log('Get: /api/getuser/', req.query.session); var today = new Date().getTime() / 1000; - var expiration = today - (7*24*3600); + var expiration = today - (24*3600); usermodel.find({'session': req.query.session, 'blocktime': { $gt: expiration }}). then((documents) => { if(documents.length > 0){