fix get_user_info func return None #9

This commit is contained in:
wu
2023-04-19 16:04:14 +08:00
committed by Wu Clan
parent 354ba1ccc3
commit 77cd87ee0e
+1 -1
View File
@@ -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):