Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

users: Send event on commit in do_update_outgoing_webhook_service.

Prakhar Pratyush2b6c5260a532
diff --git a/zerver/actions/users.py b/zerver/actions/users.py
index 38e1d495bf1..ddd887d0175 100644
--- a/zerver/actions/users.py
+++ b/zerver/actions/users.py
@@ -536,6 +536,7 @@ def do_change_can_create_users(user_profile: UserProfile, value: bool) -> None:
user_profile.save(update_fields=["can_create_users"])
[email protected](durable=True)
def do_update_outgoing_webhook_service(
bot_profile: UserProfile, service_interface: int, service_payload_url: str
) -> None:
@@ -545,7 +546,7 @@ def do_update_outgoing_webhook_service(
service.base_url = service_payload_url
service.interface = service_interface
service.save()
- send_event(
+ send_event_on_commit(
bot_profile.realm,
dict(
type="realm_bot",