Return BAD_REQUEST for bad api_post_donation requests
This commit is contained in:
parent
9390a79cca
commit
8342e2bf8b
1 changed files with 2 additions and 2 deletions
|
|
@ -95,6 +95,6 @@ async def api_post_donation():
|
||||||
if await post_donation(donation_id):
|
if await post_donation(donation_id):
|
||||||
return "Posted!", HTTPStatus.OK
|
return "Posted!", HTTPStatus.OK
|
||||||
else:
|
else:
|
||||||
return "Already posted!", HTTPStatus.OK
|
return "Already posted!", HTTPStatus.BAD_REQUEST
|
||||||
else:
|
else:
|
||||||
return "Not a paid charge!", HTTPStatus.OK
|
return "Not a paid charge!", HTTPStatus.BAD_REQUEST
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue