Skip to content
Snippets Groups Projects
Commit 3e573a5c authored by Daniel Wagner-Hall's avatar Daniel Wagner-Hall
Browse files

Fix SQL for postgres

parent 7dfa4555
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ class RoomMemberStore(SQLBaseStore):
def _get_rooms_for_user_where_membership_is_txn(self, txn, user_id,
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]),
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment