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:
Zixuan James Li 2022-07-22 18:47:30 -04:00 committed by Tim Abbott
parent ebfd2b25b1
commit 8ae838c5c8
1 changed files with 3 additions and 3 deletions

View File

@ -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