fix: match surprise attack boundaries
This commit is contained in:
@@ -26,10 +26,7 @@ import { z } from 'zod';
|
||||
import { parseArgsWithSchema } from '../parseArgs.js';
|
||||
|
||||
const ARGS_SCHEMA = z.object({
|
||||
destNationId: z.preprocess(
|
||||
(value) => (typeof value === 'number' ? Math.floor(value) : value),
|
||||
z.number().int().positive()
|
||||
),
|
||||
destNationId: z.number().int().positive(),
|
||||
});
|
||||
export type RaidArgs = z.infer<typeof ARGS_SCHEMA>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user