chore: fix linting

This commit is contained in:
gabrieljablonski 2025-12-20 12:55:27 -03:00
parent 549214e96d
commit 6d9a344186
4 changed files with 5 additions and 3 deletions

View File

@ -355,4 +355,6 @@ Rails/SaveBang:
AllowedReceivers:
- Stripe::Subscription
- Stripe::Customer
- Stripe::Invoice
- Stripe::InvoiceItem
- FactoryBot

View File

@ -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

View File

@ -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',

View File

@ -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