Skip to content

Commit

Permalink
Fix expected return status code back to 204
Browse files Browse the repository at this point in the history
  • Loading branch information
dwendland authored Jun 8, 2023
1 parent 84ea53f commit b2e32e5
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 b2e32e5

Please sign in to comment.