chore: fix linting errors in tests and api routes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user