mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 10:53:31 +00:00
Merge pull request #1969 from matrix-org/erikj/get_distinct_devices
Select distinct devices from DB
This commit is contained in:
commit
c98d91fe94
1 file changed
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user