Admin users can credit accounts

This commit is contained in:
Ben Arc
2022-01-31 16:29:42 +00:00
parent f5069f9699
commit dbab181759
14 changed files with 137 additions and 26 deletions
+3 -2
View File
@@ -11,7 +11,6 @@ from lnbits.settings import DEFAULT_WALLET_NAME
from . import db
from .models import User, Wallet, Payment, BalanceCheck
# accounts
# --------
@@ -278,7 +277,9 @@ async def get_payments(
return [Payment.from_row(row) for row in rows]
async def delete_expired_invoices(conn: Optional[Connection] = None,) -> None:
async def delete_expired_invoices(
conn: Optional[Connection] = None,
) -> None:
# first we delete all invoices older than one month
await (conn or db).execute(
f"""