mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
deps: update connect-redis to 8
This commit is contained in:
@@ -60,7 +60,7 @@
|
|||||||
"connect-mongo": "5.1.0",
|
"connect-mongo": "5.1.0",
|
||||||
"connect-multiparty": "2.2.0",
|
"connect-multiparty": "2.2.0",
|
||||||
"connect-pg-simple": "10.0.0",
|
"connect-pg-simple": "10.0.0",
|
||||||
"connect-redis": "7.1.1",
|
"connect-redis": "8.0.0",
|
||||||
"cookie-parser": "1.4.7",
|
"cookie-parser": "1.4.7",
|
||||||
"cron": "3.2.1",
|
"cron": "3.2.1",
|
||||||
"cropperjs": "1.6.2",
|
"cropperjs": "1.6.2",
|
||||||
|
|||||||
@@ -39,9 +39,9 @@ redisModule.init = async function (opts) {
|
|||||||
|
|
||||||
redisModule.createSessionStore = async function (options) {
|
redisModule.createSessionStore = async function (options) {
|
||||||
const meta = require('../meta');
|
const meta = require('../meta');
|
||||||
const sessionStore = require('connect-redis').default;
|
const { RedisStore } = require('connect-redis');
|
||||||
const client = await connection.connect(options);
|
const client = await connection.connect(options);
|
||||||
const store = new sessionStore({
|
const store = new RedisStore({
|
||||||
client: client,
|
client: client,
|
||||||
ttl: meta.getSessionTTLSeconds(),
|
ttl: meta.getSessionTTLSeconds(),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user