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(
|
assert(
|
||||||
storage.forClient || storage.fromClient,
|
storage.forClient && storage.fromClient,
|
||||||
'Session storage must have a forClient and/or fromClient method'
|
'Session storage must have a forClient and fromClient method'
|
||||||
);
|
);
|
||||||
if (cfg.transports) {
|
if (cfg.transports) {
|
||||||
console.warn(il`
|
console.warn(il`
|
||||||
|
|
Loading…
Reference in New Issue