更新 'src/synapse/dataProvider.js'
This commit is contained in:
parent
33dcd46f74
commit
f74249073a
@ -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;
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user