mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
Fix payments_cleansin for onchain payments with no order key
This commit is contained in:
parent
7b75973eba
commit
040fc3e679
@ -203,7 +203,7 @@ def payments_cleansing():
|
||||
|
||||
# same for onchain payments
|
||||
queryset = OnchainPayment.objects.filter(Q(status__in=[OnchainPayment.Status.CANCE, OnchainPayment.Status.CREAT]),
|
||||
Q(order_paid_TX__expires_at__lt=finished_time))
|
||||
Q(order_paid_TX__expires_at__lt=finished_time)|Q(order_paid_TX__isnull=True))
|
||||
|
||||
# And do not have an active trade, any past contract or any reward.
|
||||
deleted_onchainpayments = []
|
||||
|
Loading…
Reference in New Issue
Block a user