fix: match degrade relations boundaries
This commit is contained in:
1 parent
7a429a8a84
commit
c2b1088758
2 files changed
+303
-5
No files matched your search
@@ -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 DegradeRelationsArgs = z.infer<typeof ARGS_SCHEMA>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user