From d6749b413a425a845b1f6b5517b56a37c7b394db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Sat, 9 Jul 2022 15:20:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/synapse/dataProvider.?= =?UTF-8?q?js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/synapse/dataProvider.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/synapse/dataProvider.js b/src/synapse/dataProvider.js index 26b6e8a..b9f6741 100644 --- a/src/synapse/dataProvider.js +++ b/src/synapse/dataProvider.js @@ -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,