更新 'src/synapse/dataProvider.js'

This commit is contained in:
钟进 2022-07-09 10:04:05 +08:00
parent 33dcd46f74
commit f74249073a

View File

@ -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;
},
}
};