fix wrong schema for apipayments usage inside extensions.
This commit is contained in:
@@ -49,7 +49,7 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||||||
# and reduce it by the amount we're going to send to the producer
|
# and reduce it by the amount we're going to send to the producer
|
||||||
await core_db.execute(
|
await core_db.execute(
|
||||||
"""
|
"""
|
||||||
UPDATE livestream.apipayments
|
UPDATE apipayments
|
||||||
SET extra = ?, amount = ?
|
SET extra = ?, amount = ?
|
||||||
WHERE hash = ?
|
WHERE hash = ?
|
||||||
AND checking_id NOT LIKE 'internal_%'
|
AND checking_id NOT LIKE 'internal_%'
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ async def mark_webhook_sent(payment: Payment, status: int) -> None:
|
|||||||
|
|
||||||
await core_db.execute(
|
await core_db.execute(
|
||||||
"""
|
"""
|
||||||
UPDATE lnurlp.apipayments SET extra = ?
|
UPDATE apipayments SET extra = ?
|
||||||
WHERE hash = ?
|
WHERE hash = ?
|
||||||
""",
|
""",
|
||||||
(json.dumps(payment.extra), payment.payment_hash),
|
(json.dumps(payment.extra), payment.payment_hash),
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||||||
# and reduce it by the amount we're going to send to the producer
|
# and reduce it by the amount we're going to send to the producer
|
||||||
await core_db.execute(
|
await core_db.execute(
|
||||||
"""
|
"""
|
||||||
UPDATE splitpayments.apipayments
|
UPDATE apipayments
|
||||||
SET extra = ?, amount = ?
|
SET extra = ?, amount = ?
|
||||||
WHERE hash = ?
|
WHERE hash = ?
|
||||||
AND checking_id NOT LIKE 'internal_%'
|
AND checking_id NOT LIKE 'internal_%'
|
||||||
|
|||||||
Reference in New Issue
Block a user