From 9b3553095683dcd15a983966d7347d8f2d6c8815 Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 27 Aug 2024 16:53:18 -0500 Subject: [PATCH] Fix memorystore constructor validation --- server/libs/memorystore/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()