chore: fix linting
This commit is contained in:
parent
549214e96d
commit
6d9a344186
@ -355,4 +355,6 @@ Rails/SaveBang:
|
|||||||
AllowedReceivers:
|
AllowedReceivers:
|
||||||
- Stripe::Subscription
|
- Stripe::Subscription
|
||||||
- Stripe::Customer
|
- Stripe::Customer
|
||||||
|
- Stripe::Invoice
|
||||||
|
- Stripe::InvoiceItem
|
||||||
- FactoryBot
|
- FactoryBot
|
||||||
|
|||||||
@ -18,7 +18,7 @@ class Api::V2::Accounts::YearInReviewsController < Api::V1::Accounts::BaseContro
|
|||||||
|
|
||||||
ui_settings = Current.user.ui_settings || {}
|
ui_settings = Current.user.ui_settings || {}
|
||||||
ui_settings[cache_key] = data
|
ui_settings[cache_key] = data
|
||||||
Current.user.update(ui_settings: ui_settings)
|
Current.user.update!(ui_settings: ui_settings)
|
||||||
|
|
||||||
render json: data
|
render json: data
|
||||||
end
|
end
|
||||||
|
|||||||
@ -4,7 +4,7 @@ class Voice::Provider::Twilio::Adapter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def initiate_call(to:, conference_sid: nil, agent_id: nil)
|
def initiate_call(to:, conference_sid: nil, agent_id: nil)
|
||||||
call = twilio_client.calls.create(**call_params(to))
|
call = twilio_client.calls.create(**call_params(to)) # rubocop:disable Rails/SaveBang
|
||||||
|
|
||||||
{
|
{
|
||||||
provider: 'twilio',
|
provider: 'twilio',
|
||||||
|
|||||||
@ -26,7 +26,7 @@ RSpec.describe Captain::Copilot::ChatService do
|
|||||||
end
|
end
|
||||||
|
|
||||||
before do
|
before do
|
||||||
InstallationConfig.find_or_create_by(name: 'CAPTAIN_OPEN_AI_API_KEY') do |c|
|
InstallationConfig.find_or_create_by!(name: 'CAPTAIN_OPEN_AI_API_KEY') do |c|
|
||||||
c.value = 'test-key'
|
c.value = 'test-key'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user