From b2e32e56d7b2da08cd70426befc9b9ff82a9110f Mon Sep 17 00:00:00 2001 From: Dennis Wendland <72455939+dwendland@users.noreply.github.com> Date: Thu, 8 Jun 2023 16:25:51 +0200 Subject: [PATCH] Fix expected return status code back to 204 --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 9dca2b2..5c96aff 100644 --- a/server.js +++ b/server.js @@ -316,7 +316,7 @@ async function patch_delivery(id, attr, val, req_session) { }, body: JSON.stringify(body) }); - if (patch_response.status != 20) { + if (patch_response.status != 204) { const errorBody = await patch_response.text(); result.err = `Access denied when patching delivery order: ${errorBody}`; debug('Received error when patching delivery order: %o', errorBody);