fix: Use channel.inbox instead of inbox (#8734)

This commit is contained in:
Pranav Raj S
2024-01-18 00:46:25 -08:00
committed by GitHub
parent fdbb3bf4b1
commit 1f4d860d9d

View File

@@ -15,7 +15,7 @@ class Inboxes::FetchImapEmailsJob < MutexApplicationJob
rescue EOFError, OpenSSL::SSL::SSLError, Net::IMAP::NoResponseError, Net::IMAP::BadResponseError => e
Rails.logger.error e
rescue LockAcquisitionError
Rails.logger.error "Lock failed for #{inbox.id}"
Rails.logger.error "Lock failed for #{channel.inbox.id}"
rescue StandardError => e
ChatwootExceptionTracker.new(e, account: channel.account).capture_exception
end