diff --git a/src/synapse/dataProvider.js b/src/synapse/dataProvider.js index 740b046..9fd35b0 100644 --- a/src/synapse/dataProvider.js +++ b/src/synapse/dataProvider.js @@ -157,6 +157,21 @@ const resourceMap = { return json.total; }, }, + + user_p3url: { + + path: "/_synapse/admin/v1/statistics/users/media", + map: usms => ({ + ...usms, + id: usms.user_id, + }), + data: "user_p3url", + total: json => { + return json.total; + }, + + }, + users_media: { map: um => ({ ...um, @@ -294,17 +309,6 @@ const resourceMap = { delete: params => ({ endpoint: `/_synapse/admin/v1/registration_tokens/${params.id}`, }), - }, - p3url: { - path: "/_synapse/admin/v1/registration_tokens", - map: rt => ({ - ...rt, - id: rt.token, - }), - data: "p3url", - total: json => { - return json.total; - }, } };