mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-27 20:36:16 +02:00
Return BAD_REQUEST for bad api_post_donation requests
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user