mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-30 08:06:11 -05:00
Fix SQL for postgres
This commit is contained in:
parent
7dfa455508
commit
3e573a5c6b
@ -160,7 +160,7 @@ class RoomMemberStore(SQLBaseStore):
|
|||||||
|
|
||||||
def _get_rooms_for_user_where_membership_is_txn(self, txn, user_id,
|
def _get_rooms_for_user_where_membership_is_txn(self, txn, user_id,
|
||||||
membership_list):
|
membership_list):
|
||||||
where_clause = "user_id = ? AND (%s) AND NOT forgotten" % (
|
where_clause = "user_id = ? AND (%s) AND forgotten == 0" % (
|
||||||
" OR ".join(["membership = ?" for _ in membership_list]),
|
" OR ".join(["membership = ?" for _ in membership_list]),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user