diff --git a/api/tasks.py b/api/tasks.py index 98d91205..205ca91c 100644 --- a/api/tasks.py +++ b/api/tasks.py @@ -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: diff --git a/robosats/celery/__init__.py b/robosats/celery/__init__.py index 1cfdcf48..8185d708 100644 --- a/robosats/celery/__init__.py +++ b/robosats/celery/__init__.py @@ -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