fix: preserve agent id casing

This commit is contained in:
Peter Steinberger committed 2026-01-24 12:23:44 +00:00
1 parent 49c518951c
commit fa746b05de
5 files changed
+23 -25

No files matched your search

+1 -2
View File
@@ -1,4 +1,3 @@
import { normalizeAgentId } from "../routing/session-key.js";
import { parseAbsoluteTimeMs } from "./parse.js";
import { migrateLegacyCronPayload } from "./payload-migration.js";
import type { CronJobCreate, CronJobPatch } from "./types.js";
@@ -76,7 +75,7 @@ export function normalizeCronJobInput(
next.agentId = null;
} else if (typeof agentId === "string") {
const trimmed = agentId.trim();
if (trimmed) next.agentId = normalizeAgentId(trimmed);
if (trimmed) next.agentId = trimmed;
else delete next.agentId;
}
}