updates
This commit is contained in:
@@ -19,7 +19,7 @@ const AdminPage = () => {
|
||||
label="Open Pocketbase"
|
||||
Icon={DatabaseIcon}
|
||||
onClick={() =>
|
||||
window.location.replace(import.meta.env.POCKETBASE_URL! + "/_/")
|
||||
window.location.replace(process.env.POCKETBASE_URL! + "/_/")
|
||||
}
|
||||
/>
|
||||
<ListLink
|
||||
|
||||
@@ -88,7 +88,7 @@ export const getUnenrolledTeams = createServerFn()
|
||||
|
||||
export const getFreeAgents = createServerFn()
|
||||
.inputValidator(z.string())
|
||||
.middleware([superTokensAdminFunctionMiddleware])
|
||||
.middleware([superTokensFunctionMiddleware])
|
||||
.handler(async ({ data: tournamentId }) =>
|
||||
toServerResult(() => pbAdmin.getFreeAgents(tournamentId))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user