Skip to content

Commit

Permalink
fix: update 1.0.0-rc5-2
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Oct 22, 2024
1 parent 43cd932 commit e3d5295
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ async def on_invoice_paid(payment: Payment) -> None:
)
logger.debug(f"tpos: tip invoice created: {payment.payment_hash}")

checking_id = await pay_invoice(
payment = await pay_invoice(
payment_request=payment.bolt11,
wallet_id=payment.wallet_id,
extra={**payment.extra, "tipSplitted": True},
)
logger.debug(f"tpos: tip invoice paid: {checking_id}")
logger.debug(f"tpos: tip invoice paid: {payment.checking_id}")
4 changes: 1 addition & 3 deletions templates/tpos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -560,9 +560,7 @@ <h6 class="text-subtitle1 q-my-none">{{SITE_TITLE}} TPoS extension</h6>
</q-dialog>
<q-dialog v-model="urlDialog.show" position="top">
<q-card class="q-pa-lg q-pt-xl lnbits__dialog-card">
<q-responsive :ratio="1" class="q-mx-xl q-mb-md">
<lnbits-qrcode :value="urlDialog.data.shareUrl"></lnbits-qrcode>
</q-responsive>
<lnbits-qrcode :value="urlDialog.data.shareUrl"></lnbits-qrcode>
<div class="text-center q-mb-xl">
<p style="word-break: break-all">
<strong>${ urlDialog.data.name }</strong><br />${
Expand Down
4 changes: 2 additions & 2 deletions views_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def api_tpos_create_invoice(
amount += tip_amount

try:
payment_hash, payment_request = await create_invoice(
payment = await create_invoice(
wallet_id=tpos.wallet,
amount=amount,
memo=f"{memo} to {tpos.name}" if memo else f"{tpos.name}",
Expand All @@ -136,7 +136,7 @@ async def api_tpos_create_invoice(
status_code=HTTPStatus.INTERNAL_SERVER_ERROR, detail=str(exc)
) from exc

return {"payment_hash": payment_hash, "payment_request": payment_request}
return {"payment_hash": payment.payment_hash, "payment_request": payment.bolt11}


@tpos_api_router.get("/api/v1/tposs/{tpos_id}/invoices")
Expand Down

0 comments on commit e3d5295

Please sign in to comment.