mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 14:51:05 +01:00
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):
|
||||
return "Posted!", HTTPStatus.OK
|
||||
else:
|
||||
return "Already posted!", HTTPStatus.OK
|
||||
return "Already posted!", HTTPStatus.BAD_REQUEST
|
||||
else:
|
||||
return "Not a paid charge!", HTTPStatus.OK
|
||||
return "Not a paid charge!", HTTPStatus.BAD_REQUEST
|
||||
|
|
Loading…
Add table
Reference in a new issue