Skip to content

Commit

Permalink
Merge pull request #22 from i4Trust/fix-patch
Browse files Browse the repository at this point in the history
Fix expected return status code back to 204
  • Loading branch information
dwendland authored Jun 9, 2023
2 parents 84ea53f + b2e32e5 commit ab59e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ab59e78

Please sign in to comment.