Skip to content

Commit

Permalink
Fix update in dataProvider
Browse files Browse the repository at this point in the history
Fixes #461

Change-Id: Icc4b0264cfda04a8a28595d153c43cdf75524673
  • Loading branch information
awesome-manuel committed Feb 7, 2024
1 parent abc677d commit 8688ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/synapse/dataProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ const dataProvider = {
const res = resourceMap[resource];

const endpoint_url = homeserver + res.path;
return jsonClient(`${endpoint_url}/${encodeURIComponent(params.data.id)}`, {
return jsonClient(`${endpoint_url}/${encodeURIComponent(params.id)}`, {
method: "PUT",
body: JSON.stringify(params.data, filterNullValues),
}).then(({ json }) => ({
Expand Down

0 comments on commit 8688ab7

Please sign in to comment.