mateimarica / mateimarica.dev

Personal website with an Express.js backend.
https://mateimarica.dev
MIT License
0 stars 0 forks source link

[Files] removeExpiredSessions() removes sessions older than 4 seconds #13

Closed mateimarica closed 2 years ago

mateimarica commented 2 years ago

I think I wrote 4000 to test it and forgot to change it.

Should instead be:

if ((currentDate - sessions[i].creationDate) > FILES_SESSION_VALIDITY_DURATION_MILLI) {

https://github.com/mateimarica/mateimarica.dev/blob/master/backend/subdomains/files/authManager.js#L84