fix: resolve lint errors (toSorted, unused var)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9060d2cff9
commit
86414d2d78
2 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ import type { ProbabilityDistribution, ScoringRules } from "~/services/ev-calcul
|
||||||
// Mock database context
|
// Mock database context
|
||||||
const mockUpdate = vi.fn();
|
const mockUpdate = vi.fn();
|
||||||
const mockSet = vi.fn();
|
const mockSet = vi.fn();
|
||||||
const mockWhere = vi.fn();
|
const _mockWhere = vi.fn();
|
||||||
const mockDb = {
|
const mockDb = {
|
||||||
update: mockUpdate,
|
update: mockUpdate,
|
||||||
select: vi.fn(),
|
select: vi.fn(),
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ export async function syncVorpForSeason(sportsSeasonId: string): Promise<void> {
|
||||||
const allEvs = await getAllParticipantEVsForSeason(sportsSeasonId);
|
const allEvs = await getAllParticipantEVsForSeason(sportsSeasonId);
|
||||||
if (allEvs.length === 0) return;
|
if (allEvs.length === 0) return;
|
||||||
|
|
||||||
const sorted = [...allEvs].sort(
|
const sorted = [...allEvs].toSorted(
|
||||||
(a, b) => parseFloat(b.expectedValue) - parseFloat(a.expectedValue)
|
(a, b) => parseFloat(b.expectedValue) - parseFloat(a.expectedValue)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue