diff --git a/lnbits/commands.py b/lnbits/commands.py index 1fac791d1..a286fe37f 100644 --- a/lnbits/commands.py +++ b/lnbits/commands.py @@ -175,7 +175,7 @@ async def database_revert_payment(checking_id: str): async with core_db.connect() as conn: payment = await get_payment(checking_id=checking_id, conn=conn) payment.status = PaymentState.PENDING - await update_payment(payment, conn) + await update_payment(payment, conn=conn) click.echo(f"Payment '{checking_id}' marked as pending.")