更新 'src/synapse/dataProvider.js'

This commit is contained in:
钟进 2022-07-09 10:12:46 +08:00
parent 94d8bb2772
commit df57f5f908

View File

@ -165,9 +165,9 @@ const resourceMap = {
id: um.media_id, id: um.media_id,
}), }),
reference: id => ({ reference: id => ({
endpoint: `/_synapse/admin/v1/users/${id}/media`, endpoint: `/_synapse/admin/v1/users/${id}/url_preview`,
}), }),
data: "media", data: "url_preview",
total: json => { total: json => {
return json.total; return json.total;
}, },