play walkout songs
This commit is contained in:
@@ -32,9 +32,10 @@ export const updateTournament = createServerFn()
|
||||
export const getTournament = createServerFn()
|
||||
.validator(z.string())
|
||||
.middleware([superTokensFunctionMiddleware])
|
||||
.handler(async ({ data: tournamentId }) =>
|
||||
toServerResult(() => pbAdmin.getTournament(tournamentId))
|
||||
);
|
||||
.handler(async ({ data: tournamentId, context }) => {
|
||||
const isAdmin = context.roles.includes("Admin");
|
||||
return toServerResult(() => pbAdmin.getTournament(tournamentId, isAdmin));
|
||||
});
|
||||
|
||||
export const getCurrentTournament = createServerFn()
|
||||
.middleware([superTokensFunctionMiddleware])
|
||||
|
||||
Reference in New Issue
Block a user