fix: Handle PermissionDeniedError for Dialogflow processor (#8252)
This commit is contained in:
@@ -129,7 +129,7 @@ class Inbox < ApplicationRecord
|
||||
end
|
||||
|
||||
def active_bot?
|
||||
agent_bot_inbox&.active? || hooks.pluck(:app_id).include?('dialogflow')
|
||||
agent_bot_inbox&.active? || hooks.where(app_id: 'dialogflow', status: 'enabled').count.positive?
|
||||
end
|
||||
|
||||
def inbox_type
|
||||
|
||||
Reference in New Issue
Block a user