Skip to content

Commit

Permalink
Changed method name for update_billing_address
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Tsoganov authored and Sergei Tsoganov committed Sep 21, 2023
1 parent 7eb9e80 commit dd18ae5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/billing_profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def mirror_address_to_attached_invoices
Invoice.with_billing_profile(billing_profile_id: id).find_each do |invoice|
next if invoice.paid?

invoice.update_billing_address
invoice.update_billing_info
invoice.save!
end
end
Expand Down
2 changes: 1 addition & 1 deletion db/data/20200221083433_populate_billing_fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def up
next if invoice.billing_profile.blank?
next unless invoice.recipient.nil?

if invoice.update_billing_address && invoice.save
if invoice.update_billing_info && invoice.save
migrated_invoice_count += 1
else
failed_invoices << invoice.id
Expand Down

0 comments on commit dd18ae5

Please sign in to comment.