Skip to content

Commit

Permalink
Stale payment job bug fix (#1837)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jxio authored Nov 25, 2024
1 parent 0f328d2 commit 678421b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jobs/payment-jobs/tasks/stale_payment_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def _verify_created_direct_pay_invoices(cls):
if paybc_invoice.paymentstatus in STATUS_PAID:
current_app.logger.debug("_update_active_transactions")
transaction = TransactionService.find_active_by_invoice_id(invoice.id)
if not transaction or not transaction.payment_id:
continue
payment = PaymentModel.find_by_id(transaction.payment_id)

if payment.payment_status_code == PaymentStatus.COMPLETED.value:
Expand Down

0 comments on commit 678421b

Please sign in to comment.