|
|
@ -204,13 +204,15 @@ const dataProvider = {
|
|
|
|
const res = resourceMap[resource];
|
|
|
|
const res = resourceMap[resource];
|
|
|
|
const homeserver_url = "https://" + homeserver + res.path;
|
|
|
|
const homeserver_url = "https://" + homeserver + res.path;
|
|
|
|
return Promise.all(
|
|
|
|
return Promise.all(
|
|
|
|
params.ids.map(id => jsonClient(`${homeserver_url}/${id}`), {
|
|
|
|
params.ids.map(id =>
|
|
|
|
|
|
|
|
jsonClient(`${homeserver_url}/${id}`, {
|
|
|
|
method: "DELETE",
|
|
|
|
method: "DELETE",
|
|
|
|
body: JSON.stringify(params.data, filterNullValues),
|
|
|
|
body: JSON.stringify(params.data, filterNullValues),
|
|
|
|
})
|
|
|
|
}).then(responses => ({
|
|
|
|
).then(responses => ({
|
|
|
|
|
|
|
|
data: responses.map(({ json }) => json),
|
|
|
|
data: responses.map(({ json }) => json),
|
|
|
|
}));
|
|
|
|
}))
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|