feat: allow feature plan map in super admin (#9318)

- Add subscribed_features method in models/enterprise/account and include it in the JSON response
This commit is contained in:
Shivam Mishra
2024-05-09 11:28:46 +05:30
committed by GitHub
parent 4eec0aa11a
commit eff24c0d71
5 changed files with 59 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
json.partial! 'api/v1/models/account', formats: [:json], resource: @account
json.latest_chatwoot_version @latest_chatwoot_version
json.partial! 'enterprise/api/v1/accounts/partials/account', account: @account if ChatwootApp.enterprise?