upcoming tournament page, minor changes
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user