make all methods from all wallets async.
This commit is contained in:
@@ -274,7 +274,7 @@ def get_diagonalleys_orders(wallet_ids: Union[str, List[str]]) -> List[Orders]:
|
||||
f"SELECT * FROM orders WHERE wallet IN ({q})", (*wallet_ids,)
|
||||
)
|
||||
for r in rows:
|
||||
PAID = WALLET.get_invoice_status(r["invoiceid"]).paid
|
||||
PAID = (await WALLET.get_invoice_status(r["invoiceid"])).paid
|
||||
if PAID:
|
||||
with open_ext_db("diagonalley") as db:
|
||||
db.execute(
|
||||
|
||||
@@ -133,7 +133,7 @@ async def lndhub_gettxs():
|
||||
exclude_uncheckable=True,
|
||||
):
|
||||
await payment.set_pending(
|
||||
WALLET.get_payment_status(payment.checking_id).pending
|
||||
(await WALLET.get_payment_status(payment.checking_id)).pending
|
||||
)
|
||||
|
||||
limit = int(request.args.get("limit", 200))
|
||||
@@ -174,7 +174,7 @@ async def lndhub_getuserinvoices():
|
||||
exclude_uncheckable=True,
|
||||
):
|
||||
await invoice.set_pending(
|
||||
WALLET.get_invoice_status(invoice.checking_id).pending
|
||||
(await WALLET.get_invoice_status(invoice.checking_id)).pending
|
||||
)
|
||||
|
||||
limit = int(request.args.get("limit", 200))
|
||||
|
||||
Reference in New Issue
Block a user