fix: Add available_name method to agent_bot (#1238)

This commit is contained in:
Pranav Raj S 2020-09-16 11:46:07 +05:30 committed by GitHub
parent c9a56f1f02
commit 5ae3026125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,10 @@ class AgentBot < ApplicationRecord
has_many :inboxes, through: :agent_bot_inboxes
has_many :messages, as: :sender, dependent: :restrict_with_exception
def available_name
name
end
def push_event_data(inbox = nil)
{
id: id,