diff --git a/app/controllers/api/v1/accounts/inboxes_controller.rb b/app/controllers/api/v1/accounts/inboxes_controller.rb index 99b05cb3c..e7b3b197b 100644 --- a/app/controllers/api/v1/accounts/inboxes_controller.rb +++ b/app/controllers/api/v1/accounts/inboxes_controller.rb @@ -163,8 +163,7 @@ class Api::V1::Accounts::InboxesController < Api::V1::Accounts::BaseController 'line' => Channel::Line, 'telegram' => Channel::Telegram, 'whatsapp' => Channel::Whatsapp, - 'sms' => Channel::Sms, - 'voice' => Channel::Voice + 'sms' => Channel::Sms }[permitted_params[:channel][:type]] end diff --git a/app/helpers/api/v1/inboxes_helper.rb b/app/helpers/api/v1/inboxes_helper.rb index 6abfc5806..d734a346e 100644 --- a/app/helpers/api/v1/inboxes_helper.rb +++ b/app/helpers/api/v1/inboxes_helper.rb @@ -107,8 +107,7 @@ module Api::V1::InboxesHelper 'line' => Current.account.line_channels, 'telegram' => Current.account.telegram_channels, 'whatsapp' => Current.account.whatsapp_channels, - 'sms' => Current.account.sms_channels, - 'voice' => Current.account.voice_channels + 'sms' => Current.account.sms_channels }[permitted_params[:channel][:type]] end