Fix scalars get users batch
@@ -47,7 +47,7 @@ class UsersRepository(AbstractUsersRepository):
async def get_batch_by_ids(self, ids: list[int]) -> list[User]:
query = select(User).where(User.id.in_(ids))
- users = (await self.session.execute(query)).scalars()
+ users = (await self.session.execute(query)).scalars().all()
return users
async def get_by_email(self, email: str) -> Optional[User]:
