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){