chore: Add Assignable Agents API (#4722)

This commit is contained in:
Pranav Raj S
2022-05-23 19:24:07 +05:30
committed by GitHub
parent 79280ae372
commit 56cd9bc0b8
10 changed files with 134 additions and 15 deletions

View File

@@ -12,6 +12,7 @@ class Api::V1::Accounts::InboxesController < Api::V1::Accounts::BaseController
def show; end
# Deprecated: This API will be removed in 2.7.0
def assignable_agents
@assignable_agents = (Current.account.users.where(id: @inbox.members.select(:user_id)) + Current.account.administrators).uniq
end