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(
|
def add_service(
|
||||||
name: str,
|
name: str,
|
||||||
user_profile: UserProfile,
|
user_profile: UserProfile,
|
||||||
base_url: Optional[str] = None,
|
base_url: str,
|
||||||
interface: Optional[int] = None,
|
interface: int,
|
||||||
token: Optional[str] = None,
|
token: str,
|
||||||
) -> None:
|
) -> None:
|
||||||
Service.objects.create(
|
Service.objects.create(
|
||||||
name=name, user_profile=user_profile, base_url=base_url, interface=interface, token=token
|
name=name, user_profile=user_profile, base_url=base_url, interface=interface, token=token
|
||||||
|
|
Loading…
Reference in New Issue