Skip to content

Commit

Permalink
Update imap-notifier.js (fixed typo subscriber > subscriber) (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism authored Oct 4, 2023
1 parent 6e0b951 commit be90069
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/imap-notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 {
Expand All @@ -93,7 +93,7 @@ class ImapNotifier extends EventEmitter {
}
});

this.subsriber.subscribe('wd_events');
this.subscriber.subscribe('wd_events');
}

/**
Expand Down

0 comments on commit be90069

Please sign in to comment.