mirror of
https://github.com/lnbits/lnbits.git
synced 2025-05-01 23:30:50 +02:00
fix: livestream producer sharing was conflicting with internal payments.
This commit is contained in:
parent
2a198d3186
commit
da9723735c
@ -52,9 +52,16 @@ async def on_invoice_paid(payment: Payment) -> None:
|
||||
UPDATE apipayments
|
||||
SET extra = ?, amount = ?
|
||||
WHERE hash = ?
|
||||
AND checking_id NOT LIKE 'internal_%'
|
||||
""",
|
||||
(
|
||||
json.dumps(dict(**payment.extra, shared_with=[producer.name, producer.id], received=payment.amount,)),
|
||||
json.dumps(
|
||||
dict(
|
||||
**payment.extra,
|
||||
shared_with=[producer.name, producer.id],
|
||||
received=payment.amount,
|
||||
)
|
||||
),
|
||||
payment.amount - amount,
|
||||
payment.payment_hash,
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user