Skip to content

Commit

Permalink
Revert "Avoid duplicated notifications"
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat authored Oct 1, 2024
1 parent 9e46ae9 commit 28fc426
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/models/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,7 @@ def update_status(self, new_status):
self.log(
f"Order state went from {old_status}: <i>{Order.Status(old_status).label}</i> to {new_status}: <i>{Order.Status(new_status).label}</i>"
)
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)
Expand Down

0 comments on commit 28fc426

Please sign in to comment.