From 232645ccd84f76893843403e51af3cd447e5c981 Mon Sep 17 00:00:00 2001 From: Anna Velentsevich Date: Thu, 26 Dec 2024 11:33:47 +0100 Subject: [PATCH] fix linter --- app/controllers/api/v1/customers_controller.rb | 1 + app/serializers/v1/invoice_custom_section_serializer.rb | 2 +- spec/requests/api/v1/invoice_custom_sections_controller_spec.rb | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/v1/customers_controller.rb b/app/controllers/api/v1/customers_controller.rb index 252352703b5..6caa6bfa16e 100644 --- a/app/controllers/api/v1/customers_controller.rb +++ b/app/controllers/api/v1/customers_controller.rb @@ -109,6 +109,7 @@ def update_invoice_custom_sections render_customer(result.customer) else render_error_response(result) + end end def applicable_invoice_custom_sections diff --git a/app/serializers/v1/invoice_custom_section_serializer.rb b/app/serializers/v1/invoice_custom_section_serializer.rb index 9a6ad2dabc3..87dd9b6e914 100644 --- a/app/serializers/v1/invoice_custom_section_serializer.rb +++ b/app/serializers/v1/invoice_custom_section_serializer.rb @@ -12,7 +12,7 @@ def serialize display_name: model.display_name, selected_for_organization: model.selected_for_organization?, organization: { - lago_id: model.organization_id, + lago_id: model.organization_id } } end diff --git a/spec/requests/api/v1/invoice_custom_sections_controller_spec.rb b/spec/requests/api/v1/invoice_custom_sections_controller_spec.rb index e290b996d29..c0f9c733f0d 100644 --- a/spec/requests/api/v1/invoice_custom_sections_controller_spec.rb +++ b/spec/requests/api/v1/invoice_custom_sections_controller_spec.rb @@ -19,7 +19,6 @@ } end - it 'creates an invoice_custom_section' do subject