Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
Yasir Aris M 2023-10-21 23:02:35 +07:00
parent 1468cb67ed
commit be002580b5

View file

@ -52,8 +52,8 @@ class UsersData:
async def get_ban_status(self, id): async def get_ban_status(self, id):
user = await self.col.find_one({"_id": int(id)}) user = await self.col.find_one({"_id": int(id)})
if user: if user:
return True return True, user
return False return False, None
async def get_all_users(self): async def get_all_users(self):
return self.col.find({}) return self.col.find({})