更新 'src/synapse/dataProvider.js'

This commit is contained in:
钟进 2022-07-09 15:20:06 +08:00
parent d8df2fa2e8
commit d6749b413a

View File

@ -159,13 +159,16 @@ const resourceMap = {
user_urlpreview: {
map: uu => ({
...uu,
id: uu,
id: uu.media_id,
}),
reference: id => ({
endpoint: `/_synapse/admin/v1/users/${id}/urlpreview`,
}),
data: "urlpreview",
},
total: json => {
return json.total;
},
},
users_media: {
map: um => ({
...um,