Skip to content

Commit

Permalink
fix: wavoip token for agent
Browse files Browse the repository at this point in the history
  • Loading branch information
clairton committed Oct 20, 2024
1 parent 8aab21e commit 4ec8196
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions app/javascript/dashboard/i18n/locale/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ import signup from './signup.json';
import sla from './sla.json';
import teamsSettings from './teamsSettings.json';
import whatsappTemplates from './whatsappTemplates.json';
import sla from './sla.json';
import inbox from './inbox.json';
import general from './general.json';
import datePicker from './datePicker.json';
import customRole from './customRole.json';
import webphone from './webphone.json';

export default {
Expand Down
6 changes: 3 additions & 3 deletions app/views/api/v1/models/_inbox.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ if resource.whatsapp?
json.message_templates resource.channel.try(:message_templates)
json.provider_config resource.channel.try(:provider_config) if Current.account_user&.administrator?
unless Current.account_user&.administrator?
json.provider_config = {
wavoip_token: resource.channel.try(:provider_config).try(:wavoip_token)
}
provider_config = { wavoip_token: (resource.channel.try(:provider_config) || {})['wavoip_token'] }
puts ">>>>>>>> 1 #{provider_config}"
json.provider_config provider_config
end
end

Expand Down

0 comments on commit 4ec8196

Please sign in to comment.