🐛 Fix wrong call of UserService.add_user method

This commit is contained in:
洛水居室 2022-12-01 18:40:02 +08:00
parent 7a2efd16dd
commit 7f1bad08da
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -20,4 +20,4 @@ class UserService:
return await self._repository.update_user(user) return await self._repository.update_user(user)
async def add_user(self, user: User) -> User: async def add_user(self, user: User) -> User:
return await self._repository.update_user(user) return await self._repository.add_user(user)