mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 20:04:54 -04:00
Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_pool
This commit is contained in:
parent
249e8f2277
commit
e53d77b501
8 changed files with 42 additions and 33 deletions
|
@ -149,7 +149,7 @@ class RoomStore(SQLBaseStore):
|
|||
defer.returnValue(None)
|
||||
|
||||
def get_power_level(self, room_id, user_id):
|
||||
return self._db_pool.runInteraction(
|
||||
return self.runInteraction(
|
||||
self._get_power_level,
|
||||
room_id, user_id,
|
||||
)
|
||||
|
@ -182,7 +182,7 @@ class RoomStore(SQLBaseStore):
|
|||
return None
|
||||
|
||||
def get_ops_levels(self, room_id):
|
||||
return self._db_pool.runInteraction(
|
||||
return self.runInteraction(
|
||||
self._get_ops_levels,
|
||||
room_id,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue