Skip to content

Commit

Permalink
fix celery task after UserChangePlanRequest status changed
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Jan 11, 2025
1 parent 5329be7 commit 1f4ca49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impresso/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ def after_change_plan_request_updated(self, user_id: int) -> None:
add_user_to_group_task.si(user_id, req.plan.name),
email_change_plan_request_accepted.si(user_id, req.plan.name),
)()
else:
elif req.status == UserChangePlanRequest.STATUS_REJECTED:
chain(
remove_user_from_group_task.si(user_id, req.plan.name),
email_change_plan_request_rejected.si(user_id, req.plan.name),
Expand Down

0 comments on commit 1f4ca49

Please sign in to comment.