mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 13:12:24 +00:00
fix get_user_info func return None #9
This commit is contained in:
@@ -193,7 +193,7 @@ class UserService:
|
||||
raise errors.NotFoundError(msg='用户不存在')
|
||||
if user.avatar is not None:
|
||||
user.avatar = cut_path(AvatarPath + user.avatar)[1]
|
||||
return user
|
||||
return user
|
||||
|
||||
@staticmethod
|
||||
async def update(*, username: str, current_user: User, obj: UpdateUser):
|
||||
|
||||
Reference in New Issue
Block a user