fixed so the code compiles

This commit is contained in:
2026-07-11 11:27:43 -04:00
parent 02ac5f9593
commit 1f99268588
1183 changed files with 281990 additions and 813 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ async function upsertLeaderboardEntry(userId, grade, { elo, bestTime, correctAns
},
update: {
...(elo !== undefined && { elo }),
...(bestTime !== undefined && existing?.bestTime == null || bestTime < (existing?.bestTime ?? Infinity)
...(bestTime !== undefined && (existing?.bestTime == null || bestTime < existing.bestTime)
? { bestTime }
: {}),
gamesPlayed: { increment: 1 },