chore: fix linting errors in tests and api routes

This commit is contained in:
2026-03-30 22:58:33 -07:00
parent 6f83080fca
commit b0aaffbecf
4 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { NextRequest, NextResponse } from 'next/server';
import { prisma } from '@/lib/prisma';
import { getSession } from '@/lib/auth-simple';
import { hasRole, canEditUserProfiles } from '@/lib/permissions';
import { canEditUserProfiles } from '@/lib/permissions';
export async function GET(
request: NextRequest,
@@ -91,7 +91,7 @@ export async function PATCH(
}
// Update the user's name and the associated player's name if it exists
const updateData: any = { name: trimmedName };
const updateData: Record<string, unknown> = { name: trimmedName };
if (user.player) {
// Also update the player name if the user has an associated player