diff --git a/lib/imap-notifier.js b/lib/imap-notifier.js index afac8162..1e7dd09c 100644 --- a/lib/imap-notifier.js +++ b/lib/imap-notifier.js @@ -31,7 +31,7 @@ class ImapNotifier extends EventEmitter { this.connectionSessions = new WeakMap(); // Subscriber needs its own client connection. This is relevant only in the context of IMAP - this.subsriber = new Redis(tools.redisConfig(config.dbs.redis)); + this.subscriber = new Redis(tools.redisConfig(config.dbs.redis)); this._listeners = new EventEmitter(); this._listeners.setMaxListeners(0); @@ -75,7 +75,7 @@ class ImapNotifier extends EventEmitter { } }; - this.subsriber.on('message', (channel, message) => { + this.subscriber.on('message', (channel, message) => { if (channel === 'wd_events') { let data; try { @@ -93,7 +93,7 @@ class ImapNotifier extends EventEmitter { } }); - this.subsriber.subscribe('wd_events'); + this.subscriber.subscribe('wd_events'); } /**