mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-23 22:47:05 +01:00
add splitpayments tag to extra if no tag
This commit is contained in:
parent
ea91c37489
commit
58b6b9505d
1 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,11 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||
)
|
||||
|
||||
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(
|
||||
payment_request=payment_request,
|
||||
wallet_id=payment.wallet_id,
|
||||
|
|
Loading…
Add table
Reference in a new issue