Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
change sql select to count(*) > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
dklimpel authored Aug 11, 2022
1 parent 1a2e96d commit 8fa7eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/storage/databases/main/roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ async def is_locally_forgotten_room(self, room_id: str) -> bool:
"""

sql = """
SELECT count(*) FROM local_current_membership
SELECT count(*) > 0 FROM local_current_membership
INNER JOIN room_memberships USING (room_id, event_id)
WHERE
room_id = ?
Expand Down

0 comments on commit 8fa7eb8

Please sign in to comment.