fix: Add available_name method to agent_bot (#1238)
This commit is contained in:
parent
c9a56f1f02
commit
5ae3026125
@ -19,6 +19,10 @@ class AgentBot < ApplicationRecord
|
|||||||
has_many :inboxes, through: :agent_bot_inboxes
|
has_many :inboxes, through: :agent_bot_inboxes
|
||||||
has_many :messages, as: :sender, dependent: :restrict_with_exception
|
has_many :messages, as: :sender, dependent: :restrict_with_exception
|
||||||
|
|
||||||
|
def available_name
|
||||||
|
name
|
||||||
|
end
|
||||||
|
|
||||||
def push_event_data(inbox = nil)
|
def push_event_data(inbox = nil)
|
||||||
{
|
{
|
||||||
id: id,
|
id: id,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user