Skip to content

Commit f7c9a6d

Browse files
tanviet12claude
andcommitted
fix: add schedule_type to job update whitelist (#9)
schedule_type was missing from allowedJobUpdateFields, causing schedule mode changes (cron/after_sync/manual) to be silently dropped on save. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c769f32 commit f7c9a6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/api/handlers/jobs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ var allowedJobUpdateFields = map[string]bool{
114114
"input_channel_ids": true, "outputs": true, "rules_config": true,
115115
"rules_content": true, "skip_conditions": true,
116116
"ai_provider": true, "ai_model": true, "ai_system_prompt": true,
117-
"schedule_cron": true, "schedule_enabled": true,
117+
"schedule_type": true, "schedule_cron": true, "schedule_enabled": true,
118118
"date_from": true, "date_to": true, "max_conversations": true,
119119
}
120120

0 commit comments

Comments
 (0)