Fix formatting issues and update code style

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-02-01 09:35:25 -03:00
commit 7efa79af69
5 changed files with 32 additions and 20 deletions

View file

@ -144,7 +144,7 @@ async def get_current_user_for_websocket(
return await api_key_security(api_key, query_param, db)
else:
return None
def get_current_active_user(current_user: Annotated[User, Depends(get_current_user)]):
if not current_user.is_active: