mirror of https://gitee.com/bigwinds/arangodb
Session storages need both forClient and fromClient
This commit is contained in:
parent
80dbea94a4
commit
fb2a9818e6
|
@ -52,8 +52,8 @@ module.exports = function sessionMiddleware(cfg) {
|
|||
`);
|
||||
}
|
||||
assert(
|
||||
storage.forClient || storage.fromClient,
|
||||
'Session storage must have a forClient and/or fromClient method'
|
||||
storage.forClient && storage.fromClient,
|
||||
'Session storage must have a forClient and fromClient method'
|
||||
);
|
||||
if (cfg.transports) {
|
||||
console.warn(il`
|
||||
|
|
Loading…
Reference in New Issue