mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 02:46:28 +00:00
Fix payments cleansing
This commit is contained in:
parent
c12c18a5c7
commit
e525b84c9e
@ -202,10 +202,9 @@ def payments_cleansing():
|
||||
pass
|
||||
|
||||
# same for onchain payments
|
||||
queryset = OnchainPayment.objects.filter(Q(status=OnchainPayment.Status.CANCEL),
|
||||
queryset = OnchainPayment.objects.filter(Q(status=OnchainPayment.Status.CANCE),
|
||||
Q(order_paid_TX__expires_at__lt=finished_time))
|
||||
|
||||
|
||||
# And do not have an active trade, any past contract or any reward.
|
||||
deleted_onchainpayments = []
|
||||
for onchainpayment in queryset:
|
||||
|
@ -40,7 +40,7 @@ app.conf.beat_schedule = {
|
||||
"schedule": crontab(hour=0, minute=0),
|
||||
},
|
||||
"lnpayments-cleansing": { # Cleans 3+ days old unlocked hodl invoices
|
||||
"task": "lnpayments_cleansing",
|
||||
"task": "payments_cleansing",
|
||||
"schedule": crontab(hour=0, minute=0),
|
||||
},
|
||||
"give-rewards": { # Referral rewards go from 'pending' to 'earned' at midnight
|
||||
|
Loading…
Reference in New Issue
Block a user