mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-05 10:44:32 +02:00
Fix memorystore constructor validation
This commit is contained in:
parent
ec197b2e13
commit
9b35530956
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue