diff --git a/server/libs/memorystore/index.js b/server/libs/memorystore/index.js index 06fd37fb..d47853c0 100644 --- a/server/libs/memorystore/index.js +++ b/server/libs/memorystore/index.js @@ -21,7 +21,7 @@ const { Store } = require('express-session') */ module.exports = class MemoryStore extends Store { constructor(checkPeriod, ttl, max) { - if (typeof checkPeriod !== 'number' || typeof checkPeriod !== 'number' || typeof checkPeriod !== 'number') { + if (typeof checkPeriod !== 'number' || typeof ttl !== 'number' || typeof max !== 'number') { throw Error('All arguments must be provided') } super()