mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 13:24:12 -04:00
Convert simple_select_one and simple_select_one_onecol to async (#8162)
This commit is contained in:
parent
56efa9ec71
commit
4c6c56dc58
25 changed files with 220 additions and 113 deletions
|
@ -59,8 +59,8 @@ class DirectoryWorkerStore(SQLBaseStore):
|
|||
|
||||
return RoomAliasMapping(room_id, room_alias.to_string(), servers)
|
||||
|
||||
def get_room_alias_creator(self, room_alias):
|
||||
return self.db_pool.simple_select_one_onecol(
|
||||
async def get_room_alias_creator(self, room_alias: str) -> str:
|
||||
return await self.db_pool.simple_select_one_onecol(
|
||||
table="room_aliases",
|
||||
keyvalues={"room_alias": room_alias},
|
||||
retcol="creator",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue