fix postgres

This commit is contained in:
Mathieu Velten 2023-05-31 16:59:28 +02:00
parent 86ca31e705
commit 9c73f259eb
1 changed files with 2 additions and 2 deletions

View File

@ -383,7 +383,7 @@ class RoomWorkerStore(CacheInvalidationWorkerStore):
network_tuple network_tuple
search_filter search_filter
limit: Maximum number of rows to return, unlimited otherwise. limit: Maximum number of rows to return, unlimited otherwise.
bounds: An uppoer or lower bound to apply to result set if given, bounds: An upper or lower bound to apply to result set if given,
consists of a joined member count and room_id (these are consists of a joined member count and room_id (these are
excluded from result set). excluded from result set).
forwards: true if going forwards, going backwards otherwise forwards: true if going forwards, going backwards otherwise
@ -428,7 +428,7 @@ class RoomWorkerStore(CacheInvalidationWorkerStore):
query_args += [last_joined_members] query_args += [last_joined_members]
if last_room_id is not None: if last_room_id is not None:
clause += f" OR (joined_members == ? AND room_id {comp} ?)" clause += f" OR (joined_members = ? AND room_id {comp} ?)"
query_args += [last_joined_members, last_room_id] query_args += [last_joined_members, last_room_id]
where_clauses.append(clause) where_clauses.append(clause)