Chore: Remove duplication of user JBuilder (#911)
* Chore: Reduce duplication of user JBuilder
This commit is contained in:
@@ -1,10 +1,3 @@
|
||||
json.array! @agents do |agent|
|
||||
json.account_id agent.account.id
|
||||
json.availability_status agent.availability_status
|
||||
json.confirmed agent.confirmed?
|
||||
json.email agent.email
|
||||
json.id agent.id
|
||||
json.name agent.name
|
||||
json.role agent.role
|
||||
json.thumbnail agent.avatar_url
|
||||
json.partial! 'api/v1/models/agent.json.jbuilder', resource: agent
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user