mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-19 06:33:52 +01:00
handle case where types is [] on postgres correctly
This commit is contained in:
parent
004a83b43a
commit
efcdacad7d
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ class StateGroupWorkerStore(SQLBaseStore):
|
|||
# Turns out that postgres doesn't like doing a list of OR's and
|
||||
# is about 1000x slower, so we just issue a query for each specific
|
||||
# type seperately.
|
||||
if types:
|
||||
if types is not None:
|
||||
clause_to_args = [
|
||||
(
|
||||
"AND type = ? AND state_key = ?",
|
||||
|
|
Loading…
Reference in a new issue