更新 'src/synapse/dataProvider.js'
This commit is contained in:
parent
61e4444727
commit
4772083040
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user