cm: add awaits (fixes #104)

This commit is contained in:
Hay1tsme 2024-03-02 17:55:41 -05:00
parent e69149632f
commit 3559d56ccf
3 changed files with 4 additions and 4 deletions

View File

@ -339,10 +339,10 @@ class ChuniNew(ChuniBase):
}
async def handle_cm_get_user_character_api_request(self, data: Dict) -> Dict:
return super().handle_get_user_character_api_request(data)
return await super().handle_get_user_character_api_request(data)
async def handle_cm_get_user_item_api_request(self, data: Dict) -> Dict:
return super().handle_get_user_item_api_request(data)
return await super().handle_get_user_item_api_request(data)
async def handle_roll_gacha_api_request(self, data: Dict) -> Dict:
"""

View File

@ -125,7 +125,7 @@ class Mai2Universe(Mai2SplashPlus):
}
async def handle_cm_get_user_item_api_request(self, data: Dict) -> Dict:
super().handle_get_user_item_api_request(data)
await super().handle_get_user_item_api_request(data)
async def handle_cm_get_user_character_api_request(self, data: Dict) -> Dict:
characters = await self.data.item.get_characters(data["userId"])

View File

@ -144,7 +144,7 @@ class OngekiBright(OngekiBase):
}
async def handle_cm_get_user_item_api_request(self, data: Dict) -> Dict:
return self.handle_get_user_item_api_request(data)
return await self.handle_get_user_item_api_request(data)
async def handle_cm_get_user_gacha_supply_api_request(self, data: Dict) -> Dict:
# not used for now? not sure what it even does