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) );