From cbaf71ea91799e7c15ba200c7ed151caae4dda3e Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Wed, 26 Mar 2025 15:23:59 +0330 Subject: [PATCH] fix signal and update ci cd --- .github/workflows/deploy.yaml | 8 +++++--- backend/order/signals.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index aebe0d1..0c6d1d2 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -45,8 +45,10 @@ jobs: docker compose down --remove-orphans --timeout 60 - docker compose up --build --detach --remove-orphans + docker compose up --build --detach --parallel + docker compose ps + docker image prune -af - - docker compose ps \ No newline at end of file + + docker builder prune -af \ No newline at end of file diff --git a/backend/order/signals.py b/backend/order/signals.py index f198101..b26cafa 100644 --- a/backend/order/signals.py +++ b/backend/order/signals.py @@ -15,7 +15,7 @@ def order_status_changed(sender, instance, **kwargs): -def send_change_status_notif(order): +def send_change_status_notif(instance): user_subs = PushSubscription.objects.filter(user=instance.user) for user_sub in user_subs: try: