mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-19 18:11:30 +01:00
add splitpayments tag to extra if no tag
This commit is contained in:
parent
ea91c37489
commit
58b6b9505d
@ -52,6 +52,11 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||||||
)
|
)
|
||||||
|
|
||||||
logger.debug(f"created split invoice: {payment_hash}")
|
logger.debug(f"created split invoice: {payment_hash}")
|
||||||
|
|
||||||
|
extra = {**payment.extra, "splitted": True}
|
||||||
|
if not extra.get("tag"):
|
||||||
|
extra["tag"] = "splitpayments"
|
||||||
|
|
||||||
checking_id = await pay_invoice(
|
checking_id = await pay_invoice(
|
||||||
payment_request=payment_request,
|
payment_request=payment_request,
|
||||||
wallet_id=payment.wallet_id,
|
wallet_id=payment.wallet_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user