From e2d43e786f279c8906005633975c59bd4b561334 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 1 Jul 2021 11:37:27 -0300 Subject: [PATCH] fix wrong schema for apipayments usage inside extensions. --- lnbits/extensions/livestream/tasks.py | 2 +- lnbits/extensions/lnurlp/tasks.py | 2 +- lnbits/extensions/splitpayments/tasks.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lnbits/extensions/livestream/tasks.py b/lnbits/extensions/livestream/tasks.py index 158e9c73b..52f86d155 100644 --- a/lnbits/extensions/livestream/tasks.py +++ b/lnbits/extensions/livestream/tasks.py @@ -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 await core_db.execute( """ - UPDATE livestream.apipayments + UPDATE apipayments SET extra = ?, amount = ? WHERE hash = ? AND checking_id NOT LIKE 'internal_%' diff --git a/lnbits/extensions/lnurlp/tasks.py b/lnbits/extensions/lnurlp/tasks.py index 49bdc797b..e8d6a453f 100644 --- a/lnbits/extensions/lnurlp/tasks.py +++ b/lnbits/extensions/lnurlp/tasks.py @@ -54,7 +54,7 @@ async def mark_webhook_sent(payment: Payment, status: int) -> None: await core_db.execute( """ - UPDATE lnurlp.apipayments SET extra = ? + UPDATE apipayments SET extra = ? WHERE hash = ? """, (json.dumps(payment.extra), payment.payment_hash), diff --git a/lnbits/extensions/splitpayments/tasks.py b/lnbits/extensions/splitpayments/tasks.py index 512150766..50057d9ff 100644 --- a/lnbits/extensions/splitpayments/tasks.py +++ b/lnbits/extensions/splitpayments/tasks.py @@ -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 await core_db.execute( """ - UPDATE splitpayments.apipayments + UPDATE apipayments SET extra = ?, amount = ? WHERE hash = ? AND checking_id NOT LIKE 'internal_%'