Skip to content

Commit

Permalink
chore: make checking payment more obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Sep 3, 2024
1 parent ea18a40 commit 5507129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ async def api_tpos_check_invoice(tpos_id: str, payment_hash: str):
raise HTTPException(
status_code=HTTPStatus.NOT_FOUND, detail="TPoS does not exist."
)
payment = await get_standalone_payment(payment_hash)
payment = await get_standalone_payment(payment_hash, incoming=True)
if not payment:
raise HTTPException(
status_code=HTTPStatus.NOT_FOUND, detail="Payment does not exist."
Expand Down

0 comments on commit 5507129

Please sign in to comment.