format
This commit is contained in:
parent
90679f54ee
commit
b8bd9cc807
1 changed files with 4 additions and 1 deletions
|
|
@ -114,7 +114,10 @@ async def lnurl_callback(
|
||||||
hit = await get_hit(k1)
|
hit = await get_hit(k1)
|
||||||
|
|
||||||
if not hit:
|
if not hit:
|
||||||
return {"status": "ERROR", "reason": "Record not found for this charge (bad k1)"}
|
return {
|
||||||
|
"status": "ERROR",
|
||||||
|
"reason": "Record not found for this charge (bad k1)",
|
||||||
|
}
|
||||||
if hit.spent:
|
if hit.spent:
|
||||||
return {"status": "ERROR", "reason": "Payment already claimed"}
|
return {"status": "ERROR", "reason": "Payment already claimed"}
|
||||||
if not pr:
|
if not pr:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue