Chore: API Improvements (#3469)

This commit is contained in:
Sojan Jose
2021-11-27 00:48:46 +05:30
committed by GitHub
parent 55843c5bad
commit add004a56e
13 changed files with 55 additions and 13 deletions

View File

@@ -0,0 +1,7 @@
class AgentBotPresenter < SimpleDelegator
def access_token
return if account_id.blank?
Current.account.id == account_id ? super&.token : nil
end
end