Skip to content

Commit f43116e

Browse files
committed
fix: remove unreachable 'or free' fallback on tier assignment
AuthContext.tier defaults to 'free' in the dataclass and every construction path sets it explicitly. The 'or free' was dead code.
1 parent a1eba39 commit f43116e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/routes/api_keys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async def generate_api_key(
6565
)
6666

6767
# Tier is locked to the user's auth tier (no self-escalation)
68-
tier = auth.tier or "free"
68+
tier = auth.tier
6969

7070
# Enforce key limit per user
7171
key_count = api_key_manager.count_keys(auth.user_id)

0 commit comments

Comments
 (0)