From 86414d2d789268ae7b8bb7fec3d2a86bec4d9fc3 Mon Sep 17 00:00:00 2001 From: Chris Parsons Date: Thu, 9 Apr 2026 03:14:40 +0000 Subject: [PATCH] fix: resolve lint errors (toSorted, unused var) Co-Authored-By: Claude Sonnet 4.6 --- app/models/__tests__/participant-expected-value.test.ts | 2 +- app/models/participant-expected-value.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/__tests__/participant-expected-value.test.ts b/app/models/__tests__/participant-expected-value.test.ts index 9b3c644..6f605a0 100644 --- a/app/models/__tests__/participant-expected-value.test.ts +++ b/app/models/__tests__/participant-expected-value.test.ts @@ -14,7 +14,7 @@ import type { ProbabilityDistribution, ScoringRules } from "~/services/ev-calcul // Mock database context const mockUpdate = vi.fn(); const mockSet = vi.fn(); -const mockWhere = vi.fn(); +const _mockWhere = vi.fn(); const mockDb = { update: mockUpdate, select: vi.fn(), diff --git a/app/models/participant-expected-value.ts b/app/models/participant-expected-value.ts index 3885204..c33f39f 100644 --- a/app/models/participant-expected-value.ts +++ b/app/models/participant-expected-value.ts @@ -63,7 +63,7 @@ export async function syncVorpForSeason(sportsSeasonId: string): Promise { const allEvs = await getAllParticipantEVsForSeason(sportsSeasonId); if (allEvs.length === 0) return; - const sorted = [...allEvs].sort( + const sorted = [...allEvs].toSorted( (a, b) => parseFloat(b.expectedValue) - parseFloat(a.expectedValue) );