From be900691dab73f126b9429a8d6da2c43739f3f16 Mon Sep 17 00:00:00 2001
From: titanism <101466223+titanism@users.noreply.github.com>
Date: Wed, 4 Oct 2023 14:44:37 -0500
Subject: [PATCH] Update imap-notifier.js (fixed typo `subscriber` >
 `subscriber`) (#513)

---
 lib/imap-notifier.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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');
     }
 
     /**