修复任务实例默认值

This commit is contained in:
whyour
2025-11-23 12:45:02 +08:00
parent 6a3dd4f83c
commit 3b0f55caf4
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -81,5 +81,5 @@ export const commonCronSchema = {
'string.max': '日志名称不能超过100个字符',
'string.unsafePath': '绝对路径必须在日志目录内或使用 /dev/null',
}),
allow_multiple_instances: Joi.number().optional().valid(0, 1),
allow_multiple_instances: Joi.number().optional().valid(0, 1).allow(null),
};