From c248e49443b5bdbf85f36707a32965a264f8d8b4 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Fri, 25 Oct 2024 17:42:50 +0300 Subject: [PATCH] fix(outlook-api): Fixed missing redis object --- lib/email-client/outlook-client.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/email-client/outlook-client.js b/lib/email-client/outlook-client.js index 9df26f314..09b3ca158 100644 --- a/lib/email-client/outlook-client.js +++ b/lib/email-client/outlook-client.js @@ -2368,8 +2368,7 @@ class OutlookClient extends BaseClient { } // check if we have seen this message before or not (approximate estimation, not 100% exact) - messageData.seemsLikeNew = - messageData.messageSpecialUse !== '\\Sent' && !!(await this.connection.redis.pfadd(this.getSeenMessagesKey(), messageData.messageId)); + messageData.seemsLikeNew = messageData.messageSpecialUse !== '\\Sent' && !!(await this.redis.pfadd(this.getSeenMessagesKey(), messageData.messageId)); return messageData; }