From 9f383bfee63871e359172863bb7d9d834721432a Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Mon, 22 Dec 2025 11:24:07 +0200 Subject: [PATCH] fix: cached user check (#3682) --- lnbits/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/decorators.py b/lnbits/decorators.py index f7280826..d483f7d9 100644 --- a/lnbits/decorators.py +++ b/lnbits/decorators.py @@ -249,7 +249,7 @@ async def check_account_id_exists( account_id = cache.get(cache_key) if account_id: r.scope["user_id"] = account_id.id - await _check_user_access(r, account_id, conn=conn) + await _check_user_access(r, account_id.id, conn=conn) return account_id account = await _check_account_exists(r, access_token, usr, conn=conn)