更新 '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: { user_urlpreview: {
map: uu => ({ map: uu => ({
...uu, ...uu,
id: uu, id: uu.media_id,
}), }),
reference: id => ({ reference: id => ({
endpoint: `/_synapse/admin/v1/users/${id}/urlpreview`, endpoint: `/_synapse/admin/v1/users/${id}/urlpreview`,
}), }),
data: "urlpreview", data: "urlpreview",
}, total: json => {
return json.total;
},
},
users_media: { users_media: {
map: um => ({ map: um => ({
...um, ...um,