From 8688ab7d0e190f4de6d581ada200f35b0975024f Mon Sep 17 00:00:00 2001 From: Manuel Stahl Date: Wed, 7 Feb 2024 16:48:28 +0100 Subject: [PATCH] Fix update in dataProvider Fixes #461 Change-Id: Icc4b0264cfda04a8a28595d153c43cdf75524673 --- src/synapse/dataProvider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/synapse/dataProvider.js b/src/synapse/dataProvider.js index acdc6a1..dfa346a 100644 --- a/src/synapse/dataProvider.js +++ b/src/synapse/dataProvider.js @@ -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 }) => ({