Fix stale comment in finalize-bracket action

The template is now fetched only as a validity guard, not for round
order iteration (which was removed in the previous commit).

https://claude.ai/code/session_01RhQS6FQRh6iYtVNaryCEf5
This commit is contained in:
Claude 2026-04-05 22:01:19 +00:00
parent 5e88853260
commit 3981fe37ab
No known key found for this signature in database

View file

@ -690,7 +690,7 @@ export async function action({ request, params }: Route.ActionArgs) {
return { error: "No bracket exists for this event" }; return { error: "No bracket exists for this event" };
} }
// Get template to determine round order // Verify the event has a valid bracket template configured
const template = event.bracketTemplateId ? getBracketTemplate(event.bracketTemplateId) : null; const template = event.bracketTemplateId ? getBracketTemplate(event.bracketTemplateId) : null;
if (!template) { if (!template) {
return { error: "Bracket template not found" }; return { error: "Bracket template not found" };