mirror of
https://github.com/lnbits/lnbits.git
synced 2025-05-04 16:50:17 +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
|
UPDATE apipayments
|
||||||
SET extra = ?, amount = ?
|
SET extra = ?, amount = ?
|
||||||
WHERE hash = ?
|
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.amount - amount,
|
||||||
payment.payment_hash,
|
payment.payment_hash,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user