Commit 0406c2a
committed
fix: validate userTier against known keys before indexing TIER_FUNCTION_LIMITS
Previously cast directly to TierName -- unknown values like 'beta_tester'
would make TIER_FUNCTION_LIMITS[userTier] return undefined.
Now checks rawTier in TIER_FUNCTION_LIMITS before cast, falls back to 'free'.1 parent 53fcbc1 commit 0406c2a
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments