更新 'src/synapse/dataProvider.js'

This commit is contained in:
钟进 2022-07-09 10:23:28 +08:00
parent 61e4444727
commit 4772083040

View File

@ -159,13 +159,16 @@ const resourceMap = {
user_p3url: {
path: "/_synapse/admin/v1/url_preview",
map: c => ({
...c,
id: c.user_id
map: jr => ({
id: jr,
}),
reference: id => ({
endpoint: `/_synapse/admin/v1/url_preview/${id}/`,
}),
data: "url_preview",
total: json => {
return json.total;
},
},
users_media: {