mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Fix memorystore constructor validation
This commit is contained in:
parent
ec197b2e13
commit
9b35530956
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user