mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-21 17:13:55 +01:00
Fix group stream replication
The stream update functions expect the storage function to return a list of tuples.
This commit is contained in:
parent
68fd82e840
commit
ea18996f54
1 changed files with 7 additions and 7 deletions
|
@ -1172,13 +1172,13 @@ class GroupServerStore(SQLBaseStore):
|
|||
LIMIT ?
|
||||
"""
|
||||
txn.execute(sql, (from_token, to_token, limit,))
|
||||
return [{
|
||||
"stream_id": stream_id,
|
||||
"group_id": group_id,
|
||||
"user_id": user_id,
|
||||
"type": gtype,
|
||||
"content": json.loads(content_json),
|
||||
} for stream_id, group_id, user_id, gtype, content_json in txn]
|
||||
return [(
|
||||
stream_id,
|
||||
group_id,
|
||||
user_id,
|
||||
gtype,
|
||||
json.loads(content_json),
|
||||
) for stream_id, group_id, user_id, gtype, content_json in txn]
|
||||
return self.runInteraction(
|
||||
"get_all_groups_changes", _get_all_groups_changes_txn,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue