Skip to content

Commit

Permalink
Be explicit that success for batch_update is 200 status #2714
Browse files Browse the repository at this point in the history
  • Loading branch information
iamleeg committed Jul 12, 2022
1 parent a9e1212 commit 476ee5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data-serving/reusable-data-service/data_service/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def batch_update():
try:
req = request.get_json()
count = case_controller.batch_update(req.get("cases"))
return jsonify({"numModified": count})
return jsonify({"numModified": count}), 200
except WebApplicationError as e:
return jsonify({"message": e.args[0]}), e.http_code

Expand Down

0 comments on commit 476ee5a

Please sign in to comment.