add splitpayments tag to extra if no tag

This commit is contained in:
Tiago Vasconcelos 2022-10-27 16:09:55 +01:00
parent ea91c37489
commit 58b6b9505d

View File

@ -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,