Skip to content

Commit

Permalink
fix(migration): Payment status migration (#3080)
Browse files Browse the repository at this point in the history
The issue is related to the merge of
#2986 created before the
migration but turning the `PENDING_STATUSES` constants to
`PROCESSING_STATUSES`
  • Loading branch information
vincent-pochet authored Jan 20, 2025
1 parent 6227d6b commit f1e6040
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def change
provider_class = provider_type.constantize

payments = Payment.joins(:payment_provider)
.where(payment_providers: {type: provider_type}, status: provider_class::PENDING_STATUSES)
.where(payment_providers: {type: provider_type}, status: provider_class::PROCESSING_STATUSES)
payments.update_all(payable_payment_status: :pending) # rubocop:disable Rails/SkipsModelValidations

payments = Payment.joins(:payment_provider)
Expand Down

0 comments on commit f1e6040

Please sign in to comment.