更新 'src/synapse/dataProvider.js'

This commit is contained in:
2022-07-09 10:20:21 +08:00
parent df57f5f908
commit 61e4444727

View File

@@ -102,8 +102,7 @@ const resourceMap = {
path: "/_synapse/admin/v1/whois",
map: c => ({
...c,
id: c.user_id,
port: "13001"
id: c.user_id
}),
data: "connections",
},
@@ -160,17 +159,12 @@ const resourceMap = {
user_p3url: {
map: um => ({
...um,
id: um.media_id,
}),
reference: id => ({
endpoint: `/_synapse/admin/v1/users/${id}/url_preview`,
path: "/_synapse/admin/v1/url_preview",
map: c => ({
...c,
id: c.user_id
}),
data: "url_preview",
total: json => {
return json.total;
},
},