Use new API of dataProvider

Change-Id: I2789f1f1384b48e876bee5af421ff5db66fa3416
This commit is contained in:
dklimpel
2024-02-06 11:23:38 +01:00
committed by Manuel Stahl
parent 76ef017244
commit 3adc6b4663
3 changed files with 15 additions and 13 deletions

View File

@@ -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,
}));