Skip to content
Snippets Groups Projects
Commit c98d91fe authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Merge pull request #1969 from matrix-org/erikj/get_distinct_devices

Select distinct devices from DB
parents 82f7f154 ac5491f5
No related branches found
No related tags found
No related merge requests found
......@@ -508,7 +508,7 @@ class DeviceStore(SQLBaseStore):
defer.returnValue(set(changed))
sql = """
SELECT user_id FROM device_lists_stream WHERE stream_id > ?
SELECT DISTINCT user_id FROM device_lists_stream WHERE stream_id > ?
"""
rows = yield self._execute("get_user_whose_devices_changed", None, sql, from_key)
defer.returnValue(set(row[0] for row in rows))
......
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