mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-20 04:21:20 +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):
|
||||
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
|
||||
|
Reference in New Issue
Block a user