fix(security): require ADMIN role for /api/performance/db-metrics (#718) #669
Annotations
3 errors and 1 warning
|
Type Check, Lint & Validation
Process completed with exit code 2.
|
|
Type Check, Lint & Validation:
src/lib/authMiddleware.ts#L53
Type '{ id: string; email: string; role: "ADMIN" | "INSTRUCTOR" | "STUDENT" | "GUEST"; }' is missing the following properties from type '{ id: string; name: string; email: string; role: "ADMIN" | "INSTRUCTOR" | "STUDENT" | "GUEST"; referralCount: number; referralCode?: string | undefined; referredBy?: string | undefined; }': name, referralCount
|
|
Type Check, Lint & Validation:
src/lib/authMiddleware.ts#L42
Type '{ id: string; email: string; role: "ADMIN" | "INSTRUCTOR" | "STUDENT" | "GUEST"; }' is missing the following properties from type '{ id: string; name: string; email: string; role: "ADMIN" | "INSTRUCTOR" | "STUDENT" | "GUEST"; referralCount: number; referralCode?: string | undefined; referredBy?: string | undefined; }': name, referralCount
|
|
Type Check, Lint & Validation
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|