Skip to content

Commit

Permalink
feat: rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomiguelpinto committed Sep 10, 2024
1 parent 29335e4 commit 3663054
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
9 changes: 7 additions & 2 deletions lib/lago/api/resources/customer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def past_usage(external_customer_id, external_subscription_id, options = {})
)

connection.get_all(
options.merge(external_subscription_id: external_subscription_id),
options.merge(external_subscription_id:),
uri,
)
end
Expand Down Expand Up @@ -124,7 +124,12 @@ def whitelist_integration_customers(integration_customers)

(integration_customers || []).each do |m|
result = (m || {})
.slice(:id, :external_customer_id, :integration_type, :integration_code, :subsidiary_id, :sync_with_provider)
.slice(:id,
:external_customer_id,
:integration_type,
:integration_code,
:subsidiary_id,
:sync_with_provider)

processed_integration_customers << result unless result.empty?
end
Expand Down
10 changes: 5 additions & 5 deletions spec/factories/customer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
integration_customers do
[
{
integration_type: "netsuite",
integration_code: "test-123",
subsidiary_id: "2",
sync_with_provider: true
}
integration_type: 'netsuite',
integration_code: 'test-123',
subsidiary_id: '2',
sync_with_provider: true,
},
]
end
metadata do
Expand Down

0 comments on commit 3663054

Please sign in to comment.