mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 08:14:11 -04:00
Add field total
to device list in admin API (#8644)
This commit is contained in:
parent
7b13780c54
commit
913f8a06e4
4 changed files with 23 additions and 2 deletions
|
@ -119,7 +119,7 @@ class DevicesRestServlet(RestServlet):
|
|||
raise NotFoundError("Unknown user")
|
||||
|
||||
devices = await self.device_handler.get_devices_by_user(target_user.to_string())
|
||||
return 200, {"devices": devices}
|
||||
return 200, {"devices": devices, "total": len(devices)}
|
||||
|
||||
|
||||
class DeleteDevicesRestServlet(RestServlet):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue