From b3c512fd1df1ef24943c3d75fe32f3a853a8f78e Mon Sep 17 00:00:00 2001 From: Jeremy Scheff Date: Tue, 31 Dec 2024 23:11:20 -0500 Subject: [PATCH] Lint --- TODO | 2 ++ src/worker/db/connectLeague.ts | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 1d5d0a032..9261f9d25 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,5 @@ +Setting pass tendency to zero doesn't prevent pass attempts on two point conversions https://discord.com/channels/290013534023057409/290015591216054273/1323838219598561363 + Change (or add an option for) the coin flip to be like the old NBA coin flip, which was between the worst teams in each conference, not the worst two teams overall. Alternatively add the ability to edit the teams in the lottery. Probably no one else cares, but I like to be accurate. https://discord.com/channels/290013534023057409/331882115119448065/1322397494335897692 FBGM playoff overtime minor bug - 1st team scores TD+XP, 2nd scores TD and misses XP. that should end the game, but it doesn't actually end until the next kickoff https://discord.com/channels/290013534023057409/290015591216054273/1322426704832106527 diff --git a/src/worker/db/connectLeague.ts b/src/worker/db/connectLeague.ts index a5c1f1165..63ab30f14 100644 --- a/src/worker/db/connectLeague.ts +++ b/src/worker/db/connectLeague.ts @@ -744,7 +744,9 @@ const migrate = async ({ await cursor.update(gm); } - for await (const cursor of transaction.objectStore("playerStats")) { + for await (const cursor of transaction.objectStore( + "playerStats" as any, + )) { const ps = cursor.value; delete ps.trb; await cursor.update(ps); @@ -763,7 +765,7 @@ const migrate = async ({ // Only non-retired players, for efficiency for await (const cursor of transaction.objectStore("players")) { const p = cursor.value; - for (const r of p.ratings) { + for (const r of p.ratings as any[]) { // Replace blk/stl with diq if (typeof r.diq !== "number") { if (typeof r.blk === "number" && typeof r.stl === "number") {