Skip to content

fix(security): require ADMIN role for /api/performance/db-metrics (#718) #669

fix(security): require ADMIN role for /api/performance/db-metrics (#718)

fix(security): require ADMIN role for /api/performance/db-metrics (#718) #669

Re-run triggered June 29, 2026 20:13
Status Failure
Total duration 50s
Artifacts

ci.yml

on: pull_request
Type Check, Lint & Validation
45s
Type Check, Lint & Validation
Fit to window
Zoom out
Zoom in

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/