Fix: Mail ate compare with nil date (#7084)
fixes: https://chatwoot-p3.sentry.io/issues/4185144468/?project=6382945
This commit is contained in:
parent
d320605556
commit
0f776a173c
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user