last activity for players

This commit is contained in:
yohlo
2025-10-10 16:03:51 -05:00
parent 97427718e8
commit f96f92c7c9
14 changed files with 211 additions and 15 deletions

View File

@@ -161,3 +161,9 @@ export const getUnenrolledPlayers = createServerFn()
.handler(async ({ data: tournamentId }) =>
toServerResult(async () => await pbAdmin.getUnenrolledPlayers(tournamentId))
);
export const getPlayersActivity = createServerFn()
.middleware([superTokensFunctionMiddleware])
.handler(async () =>
toServerResult<Player[]>(async () => await pbAdmin.getPlayersActivity())
);