chore: remove unnecessary dependent destroy (#4104)

This commit is contained in:
Sojan Jose 2022-03-03 13:02:02 +05:30 committed by GitHub
parent 28d102f526
commit 11adfd2384
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -152,7 +152,7 @@ export const IFrameHelper = {
if (window.$chatwoot.user) {
IFrameHelper.sendMessage('set-user', window.$chatwoot.user);
}
dispatchWindowEvent({ eventName: CHATWOOT_READY });
window.playAudioAlert = () => {};

View file

@ -26,7 +26,7 @@ class AgentBot < ApplicationRecord
has_many :agent_bot_inboxes, dependent: :destroy_async
has_many :inboxes, through: :agent_bot_inboxes
has_many :messages, as: :sender, dependent: :restrict_with_exception
belongs_to :account, dependent: :destroy_async, optional: true
belongs_to :account, optional: true
def available_name
name