mirror of
https://github.com/element-hq/synapse
synced 2024-07-04 09:53:32 +00:00
Fix clause change
This commit is contained in:
parent
5c213158d7
commit
c60aca755b
|
@ -934,6 +934,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
|
||||||
ignore_room_clause, ignore_room_args = make_in_list_sql_clause(
|
ignore_room_clause, ignore_room_args = make_in_list_sql_clause(
|
||||||
txn.database_engine, "e.room_id", excluded_rooms, negative=True
|
txn.database_engine, "e.room_id", excluded_rooms, negative=True
|
||||||
)
|
)
|
||||||
|
ignore_room_clause = f"AND {ignore_room_clause}"
|
||||||
args += ignore_room_args
|
args += ignore_room_args
|
||||||
|
|
||||||
sql = """
|
sql = """
|
||||||
|
@ -948,6 +949,8 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
|
||||||
ignore_room_clause,
|
ignore_room_clause,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
logger.info("get_membership_changes_for_user: %s", sql)
|
||||||
|
|
||||||
txn.execute(sql, args)
|
txn.execute(sql, args)
|
||||||
|
|
||||||
rows = [
|
rows = [
|
||||||
|
|
Loading…
Reference in a new issue