Fix: Mail ate compare with nil date (#7084)

fixes: https://chatwoot-p3.sentry.io/issues/4185144468/?project=6382945
This commit is contained in:
Tejaswini Chile
2023-05-15 21:42:22 +05:30
committed by GitHub
parent d320605556
commit 0f776a173c

View File

@@ -54,7 +54,9 @@ class Inboxes::FetchImapEmailsJob < ApplicationJob
end
def processed_email?(current_email, last_email_time)
current_email.date < last_email_time
return current_email.date < last_email_time if current_email.date.present?
false
end
def fetch_mail_for_ms_provider(channel)