merge: narrow nation betting API
This commit is contained in:
commit
5262a61ddf
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