From 817169062d03ea5e465e9a40d80eb48d1ff327ea Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Thu, 27 Jul 2017 11:41:58 +0300 Subject: [PATCH] fixed redis setup --- lib/imap-notifier.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/imap-notifier.js b/lib/imap-notifier.js index bf0edd37..d80b7459 100644 --- a/lib/imap-notifier.js +++ b/lib/imap-notifier.js @@ -14,7 +14,7 @@ class ImapNotifier extends EventEmitter { super(); this.database = options.database; - this.publisher = options.redis || redis.createClient(tools.redisConfig(config.redis)); + this.publisher = options.redis || redis.createClient(tools.redisConfig(config.dbs.redis)); this.cachedcounter = counters(this.publisher).cachedcounter; this.logger = options.logger || { @@ -29,7 +29,7 @@ class ImapNotifier extends EventEmitter { } // Subscriber needs its own client connection. This is relevant only in the context of IMAP - this.subsriber = redis.createClient(tools.redisConfig(config.redis)); + this.subsriber = redis.createClient(tools.redisConfig(config.dbs.redis)); this._listeners = new EventEmitter(); this._listeners.setMaxListeners(0);