feat: add recalculateAllElo function for idempotent ELO recalculation

This commit is contained in:
2026-03-30 21:28:09 -07:00
parent 04a42c903b
commit 3a78f354ad
7 changed files with 594 additions and 61 deletions
+2
View File
@@ -4,6 +4,7 @@ import Link from "next/link"
import { redirect } from "next/navigation"
import { getSession } from "@/lib/auth-simple"
import type { Event as EventModel } from "@prisma/client"
import { RecalculateEloButton } from "../../components/RecalculateEloButton"
export default async function AdminDashboard() {
console.log('AdminDashboard rendering...')
@@ -169,6 +170,7 @@ export default async function AdminDashboard() {
</svg>
All Tournaments
</Link>
<RecalculateEloButton />
</div>
</div>