mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2026-02-10 23:20:15 +00:00
Use new API of dataProvider
Change-Id: I2789f1f1384b48e876bee5af421ff5db66fa3416
This commit is contained in:
parent
76ef017244
commit
3adc6b4663
3 changed files with 15 additions and 13 deletions
|
|
@ -98,7 +98,7 @@ const resourceMap = {
|
|||
}),
|
||||
delete: params => ({
|
||||
endpoint: `/_synapse/admin/v2/users/${encodeURIComponent(
|
||||
params.meta.user_id
|
||||
params.previousData.user_id
|
||||
)}/devices/${params.id}`,
|
||||
}),
|
||||
},
|
||||
|
|
@ -546,7 +546,7 @@ const dataProvider = {
|
|||
const endpoint_url = homeserver + res.path;
|
||||
return jsonClient(`${endpoint_url}/${params.id}`, {
|
||||
method: "DELETE",
|
||||
body: JSON.stringify(params.data, filterNullValues),
|
||||
body: JSON.stringify(params.previousData, filterNullValues),
|
||||
}).then(({ json }) => ({
|
||||
data: json,
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue