JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix:定时任务更新接口更新入参
douran0a797508a4a2
diff --git a/jiuwenclaw/web/src/components/CronPanel/index.tsx b/jiuwenclaw/web/src/components/CronPanel/index.tsxindex 86a47793e7..3afce30001 100644--- a/jiuwenclaw/web/src/components/CronPanel/index.tsx+++ b/jiuwenclaw/web/src/components/CronPanel/index.tsx@@ -219,16 +219,18 @@ export default function CronPanel() {}try {- // 准备更新数据,只包含必要的字段+ // 准备更新数据,将除id外的参数用patch包起来const updateData: Record<string, unknown> = {id: editJob.id,- name: editJob.name,- enabled: editJob.enabled,- cron_expr: editJob.cron_expr,- timezone: editJob.timezone,- wake_offset_seconds: editJob.wake_offset_seconds,- description: editJob.description,- targets: editJob.targets+ patch: {+ name: editJob.name,+ enabled: editJob.enabled,+ cron_expr: editJob.cron_expr,+ timezone: editJob.timezone,+ wake_offset_seconds: editJob.wake_offset_seconds,+ description: editJob.description,+ targets: editJob.targets+ }};await webRequest<{ job: CronJob }>('cron.job.update', updateData);