Fixed "TypeError" for UserInDB
This commit is contained in:
parent
e5fad5ba92
commit
afefea6f68
@ -90,7 +90,9 @@ async def get_user(user: str) -> UserInDB:
|
||||
return UserInDB(
|
||||
user=found_user["user"],
|
||||
email=found_user["email"],
|
||||
quota=found_user["quota"],
|
||||
quota=found_user["quota"]
|
||||
if found_user["quota"] is not None
|
||||
else configGet("default_user_quota"),
|
||||
disabled=found_user["disabled"],
|
||||
hash=found_user["hash"],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user