cloudcms-server 3.2.324 → 3.2.325

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server/index.js +1 -3
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "cloudcms-server",
8
8
  "description": "Cloud CMS Application Server Module",
9
- "version": "3.2.324",
9
+ "version": "3.2.325",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "git://github.com/gitana/cloudcms-server.git"
package/server/index.js CHANGED
@@ -16,8 +16,7 @@ var session = require('express-session');
16
16
  var cookieParser = require('cookie-parser');
17
17
  var flash = require("connect-flash");
18
18
 
19
- //const redis = require('redis');
20
- const connectRedis = require('connect-redis');
19
+ const {RedisStore} = require("connect-redis");
21
20
 
22
21
  // we don't bind a single passport - instead, we get the constructor here by hand
23
22
  var Passport = require("passport").Passport;
@@ -715,7 +714,6 @@ var initSession = function(initDone)
715
714
  var redisOptions = redisHelper.redisOptions();
716
715
  var redisClient = new IORedis(redisOptions.url);
717
716
 
718
- var RedisStore = connectRedis(session);
719
717
  sessionConfig.store = new RedisStore({ client: redisClient });
720
718
  initDone(null, session(sessionConfig));
721
719
  }