fix: match degrade relations boundaries

This commit is contained in:
2026-07-26 09:16:01 +00:00
parent 7a429a8a84
commit c2b1088758
2 changed files with 303 additions and 5 deletions
@@ -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>;