upcoming tournament page, minor changes

This commit is contained in:
yohlo
2025-09-09 23:20:19 -05:00
parent c5d69f1a19
commit c74da09bde
29 changed files with 1125 additions and 46 deletions

View File

@@ -36,6 +36,12 @@ export const getTournament = createServerFn()
toServerResult(() => pbAdmin.getTournament(tournamentId))
);
export const getCurrentTournament = createServerFn()
.middleware([superTokensFunctionMiddleware])
.handler(async () =>
toServerResult(() => pbAdmin.getMostRecentTournament())
);
export const enrollTeam = createServerFn()
.validator(z.object({
tournamentId: z.string(),