Limit nation betting API scope
This commit is contained in:
1 parent
25e67e15ae
commit
9a2d86988d
1 file changed
+1
-1
@@ -31,7 +31,7 @@ const loadWorldDate = async (db: Parameters<typeof getMyGeneral>[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);
|
||||
|
||||
Reference in new issue
Block a user