From 28fc426e7e3c65a6400d91359533305ffb949c22 Mon Sep 17 00:00:00 2001 From: KoalaSat Date: Tue, 1 Oct 2024 19:35:03 +0000 Subject: [PATCH] Revert "Avoid duplicated notifications" --- api/models/order.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/models/order.py b/api/models/order.py index 92e59998..abd34a2e 100644 --- a/api/models/order.py +++ b/api/models/order.py @@ -350,8 +350,7 @@ class Order(models.Model): self.log( f"Order state went from {old_status}: {Order.Status(old_status).label} to {new_status}: {Order.Status(new_status).label}" ) - if old_status != new_status: - send_status_notification.delay(order_id=self.id, status=self.status) + send_status_notification.delay(order_id=self.id, status=self.status) @receiver(pre_delete, sender=Order)