mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 15:30:39 +00:00
chore(gateway): guard cron agent heartbeat type
This commit is contained in:
@@ -192,9 +192,11 @@ export function buildGatewayCronService(params: {
|
||||
(entry) =>
|
||||
entry && typeof entry.id === "string" && normalizeAgentId(entry.id) === agentId,
|
||||
);
|
||||
const agentHeartbeat =
|
||||
agentEntry && typeof agentEntry === "object" ? agentEntry.heartbeat : undefined;
|
||||
const baseHeartbeat = {
|
||||
...runtimeConfig.agents?.defaults?.heartbeat,
|
||||
...agentEntry?.heartbeat,
|
||||
...agentHeartbeat,
|
||||
};
|
||||
const heartbeatOverride = opts?.heartbeat
|
||||
? { ...baseHeartbeat, ...opts.heartbeat }
|
||||
|
||||
Reference in New Issue
Block a user