summary refs log tree commit diff
path: root/synapse/handlers/admin.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--synapse/handlers/admin.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/synapse/handlers/admin.py b/synapse/handlers/admin.py
index 5ba3c7039a..04fa58df65 100644
--- a/synapse/handlers/admin.py
+++ b/synapse/handlers/admin.py
@@ -42,16 +42,15 @@ class AdminHandler(BaseHandler):
 
         ret = {
             "user_id": user.to_string(),
-            "devices": [
-                {
-                    "device_id": None,
+            "devices": {
+                "": {
                     "sessions": [
                         {
                             "connections": connections,
                         }
                     ]
                 },
-            ],
+            },
         }
 
         defer.returnValue(ret)