fix audit endpoint

This commit is contained in:
callebtc 2022-12-06 20:58:09 +01:00
parent 223c980710
commit 6f5f7753ef

View File

@ -686,7 +686,7 @@ async def img(request: Request, data):
) )
@core_app.get("/api/v1/audit/") @core_app.get("/api/v1/audit")
async def api_auditor(wallet: WalletTypeInfo = Depends(get_key_type)): async def api_auditor(wallet: WalletTypeInfo = Depends(get_key_type)):
if wallet.wallet.user not in LNBITS_ADMIN_USERS: if wallet.wallet.user not in LNBITS_ADMIN_USERS:
raise HTTPException( raise HTTPException(