diff options
Diffstat (limited to 'src/api/server/ServerApi.js')
-rw-r--r-- | src/api/server/ServerApi.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js index 75d18f234..8fdaed363 100644 --- a/src/api/server/ServerApi.js +++ b/src/api/server/ServerApi.js | |||
@@ -183,9 +183,7 @@ export default class ServerApi { | |||
183 | async createService(recipeId, data) { | 183 | async createService(recipeId, data) { |
184 | const request = await sendAuthRequest(`${apiBase()}/service`, { | 184 | const request = await sendAuthRequest(`${apiBase()}/service`, { |
185 | method: 'POST', | 185 | method: 'POST', |
186 | body: JSON.stringify(Object.assign({ | 186 | body: JSON.stringify({ recipeId, ...data }), |
187 | recipeId, | ||
188 | }, data)), | ||
189 | }); | 187 | }); |
190 | if (!request.ok) { | 188 | if (!request.ok) { |
191 | throw request; | 189 | throw request; |