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: Remove default values for add_service.

Zixuan James Li8ae838c5c8df
diff --git a/zerver/lib/users.py b/zerver/lib/users.py
index 7a9552891b6..8a81d4f792a 100644
--- a/zerver/lib/users.py
+++ b/zerver/lib/users.py
@@ -126,9 +126,9 @@ def check_valid_bot_config(bot_type: int, service_name: str, config_data: Dict[s
def add_service(
name: str,
user_profile: UserProfile,
- base_url: Optional[str] = None,
- interface: Optional[int] = None,
- token: Optional[str] = None,
+ base_url: str,
+ interface: int,
+ token: str,
) -> None:
Service.objects.create(
name=name, user_profile=user_profile, base_url=base_url, interface=interface, token=token