mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-31 02:21:35 +00:00
Fix invoice-follower output logs and order_update
This commit is contained in:
parent
c693faacde
commit
3a49902a7c
@ -65,20 +65,22 @@ class Command(BaseCommand):
|
||||
|
||||
# Only save the hold_payments that change (otherwise this function does not scale)
|
||||
changed = not old_status == new_status
|
||||
|
||||
if changed:
|
||||
# self.handle_status_change(hold_lnpayment, old_status)
|
||||
self.update_order_status(hold_lnpayment)
|
||||
hold_lnpayment.status = new_status
|
||||
self.update_order_status(hold_lnpayment)
|
||||
hold_lnpayment.save()
|
||||
|
||||
# Report for debugging
|
||||
new_status = LNPayment.Status(hold_lnpayment.status).label
|
||||
old = LNPayment.Status(old_status).label
|
||||
new = LNPayment.Status(hold_lnpayment.status).label
|
||||
debug["invoices"].append(
|
||||
{
|
||||
idx: {
|
||||
"payment_hash": str(hold_lnpayment.payment_hash),
|
||||
"old_status": old_status,
|
||||
"new_status": new_status,
|
||||
"old_status": old,
|
||||
"new_status": new,
|
||||
}
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user