mirror of
https://github.com/rjNemo/graphql_python_template
synced 2026-06-06 02:26:47 +00:00
11 lines
272 B
Python
11 lines
272 B
Python
from typing import Tuple
|
|
|
|
from app.models.user import User
|
|
from app.repositories.users import user_exists, remove_user
|
|
|
|
|
|
def delete_user(user_id: str) -> Tuple[User, bool]:
|
|
if not user_exists(user_id):
|
|
return None, False
|
|
|
|
return remove_user(user_id), True
|