Add new list with information about users' media (#89)

This commit is contained in:
Dirk Klimpel
2021-02-11 21:14:02 +01:00
committed by GitHub
parent ea59d0dd02
commit 7f92e1a3c0
5 changed files with 74 additions and 0 deletions

View File

@@ -174,6 +174,17 @@ const resourceMap = {
method: "POST",
}),
},
user_media_statistics: {
path: "/_synapse/admin/v1/statistics/users/media",
map: usms => ({
...usms,
id: usms.user_id,
}),
data: "users",
total: json => {
return json.total;
},
},
};
function filterNullValues(key, value) {