chore: fix linting
This commit is contained in:
parent
549214e96d
commit
6d9a344186
@ -355,4 +355,6 @@ Rails/SaveBang:
|
||||
AllowedReceivers:
|
||||
- Stripe::Subscription
|
||||
- Stripe::Customer
|
||||
- Stripe::Invoice
|
||||
- Stripe::InvoiceItem
|
||||
- FactoryBot
|
||||
|
||||
@ -18,7 +18,7 @@ class Api::V2::Accounts::YearInReviewsController < Api::V1::Accounts::BaseContro
|
||||
|
||||
ui_settings = Current.user.ui_settings || {}
|
||||
ui_settings[cache_key] = data
|
||||
Current.user.update(ui_settings: ui_settings)
|
||||
Current.user.update!(ui_settings: ui_settings)
|
||||
|
||||
render json: data
|
||||
end
|
||||
|
||||
@ -4,7 +4,7 @@ class Voice::Provider::Twilio::Adapter
|
||||
end
|
||||
|
||||
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',
|
||||
|
||||
@ -26,7 +26,7 @@ RSpec.describe Captain::Copilot::ChatService do
|
||||
end
|
||||
|
||||
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'
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user