diff --git a/api/tasks.py b/api/tasks.py index a0e790a6..5557d362 100644 --- a/api/tasks.py +++ b/api/tasks.py @@ -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 = []