mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
fix: Instagram events job NoMethodError: undefined method for nil:NilClass (#7105)
- Sometimes tag entry does not have messaging or standby and cause a error
This commit is contained in:
committed by
GitHub
parent
aea9470b6a
commit
a25179c342
@@ -31,6 +31,6 @@ class Webhooks::InstagramEventsJob < ApplicationJob
|
||||
end
|
||||
|
||||
def messages(entry)
|
||||
(entry[:messaging].presence || entry[:standby])
|
||||
(entry[:messaging].presence || entry[:standby] || [])
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user