Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Call webhooks after transaction in BaseCustomerCreate (#17076)

Iga Karbowiak3d728a791ba9
diff --git a/saleor/graphql/account/mutations/base.py b/saleor/graphql/account/mutations/base.py
index a87f4aa4e1..0d097815cb 100644
--- a/saleor/graphql/account/mutations/base.py
+++ b/saleor/graphql/account/mutations/base.py
@@ -338,7 +338,7 @@ class BaseCustomerCreate(ModelMutation, I18nMixin):
cls.call_event(manager.customer_created, instance)
account_events.customer_account_created_event(user=instance)
else:
- manager.customer_updated(instance)
+ cls.call_event(manager.customer_updated, instance)
if redirect_url := cleaned_input.get("redirect_url"):
channel_slug = cleaned_input.get("channel")