mirror of https://github.com/zulip/zulip.git
users: Remove default values for add_service.
These default values are unused by the callers and incompatible with the `Service` model. Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
parent
ebfd2b25b1
commit
8ae838c5c8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue