We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72536cc commit d9bf7b7Copy full SHA for d9bf7b7
index.js
@@ -70,11 +70,12 @@ class API {
70
71
// Initialize redis
72
this.client =
73
- this.config.redis === false
+ this.config.client ||
74
+ (this.config.redis === false
75
? false
76
: _.isPlainObject(this.config.redis)
77
? new Redis(this.config.redis, this.logger, this.config.redisMonitor)
- : this.config.redis;
78
+ : this.config.redis);
79
app.context.client = this.client;
80
81
// Expose passport
0 commit comments