mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 07:52:56 +01:00
Fix sql error in _get_state_groups_from_groups
If this was called with a `(type, None)` entry in types (which is supposed to return all state of type `type`), it would explode with a sql error.
This commit is contained in:
parent
48e2b48888
commit
d3a8c9c55e
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ class StateGroupWorkerStore(SQLBaseStore):
|
||||||
for typ in types:
|
for typ in types:
|
||||||
if typ[1] is None:
|
if typ[1] is None:
|
||||||
where_clauses.append("(type = ?)")
|
where_clauses.append("(type = ?)")
|
||||||
where_args.extend(typ[0])
|
where_args.append(typ[0])
|
||||||
wildcard_types = True
|
wildcard_types = True
|
||||||
else:
|
else:
|
||||||
where_clauses.append("(type = ? AND state_key = ?)")
|
where_clauses.append("(type = ? AND state_key = ?)")
|
||||||
|
|
Loading…
Reference in a new issue