Skip to content

Commit

Permalink
Merge pull request #30 from iWarpBTC/hotfix-payinvoice
Browse files Browse the repository at this point in the history
hotfix: wallet_type -> key_type
  • Loading branch information
arcbtc authored May 21, 2024
2 parents 75c2b0b + 71273e1 commit b91207a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def require_admin_key(
r: Request, api_key_header_auth: str = Security(api_key_header_auth)
):
wallet = await check_wallet(r, api_key_header_auth)
if wallet.wallet_type != 0:
if wallet.key_type != 0:
# If wallet type is not admin then return the unauthorized status
# This also covers when the user passes an invalid key type
raise HTTPException(
Expand Down

0 comments on commit b91207a

Please sign in to comment.