mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 08:34:12 -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
|
@ -71,6 +71,11 @@ class RoomMemberStore(SQLBaseStore):
|
|||
|
||||
txn.execute(sql, (room_id, domain))
|
||||
|
||||
def store_room_member(self, user_id, room_id, event_id, membership):
|
||||
return self.runInteraction(self._store_room_member_txn,
|
||||
user_id, user_id, room_id, event_id, membership
|
||||
)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def get_room_member(self, user_id, room_id):
|
||||
"""Retrieve the current state of a room member.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue