From 9a2d86988d73dbb8d69e817296a1292d249659aa Mon Sep 17 00:00:00 2001 From: hided62 Date: Sat, 25 Jul 2026 20:17:28 +0000 Subject: [PATCH] Limit nation betting API scope --- app/game-api/src/router/betting/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/game-api/src/router/betting/index.ts b/app/game-api/src/router/betting/index.ts index b1bf204..9b42d33 100644 --- a/app/game-api/src/router/betting/index.ts +++ b/app/game-api/src/router/betting/index.ts @@ -31,7 +31,7 @@ const loadWorldDate = async (db: Parameters[0]['db']) => { export const bettingRouter = router({ getList: authedProcedure - .input(z.object({ req: z.enum(['bettingNation', 'tournament']).optional() }).optional()) + .input(z.object({ req: z.literal('bettingNation').optional() }).optional()) .query(async ({ ctx, input }) => { requireUserId(ctx.auth); await getMyGeneral(ctx);