修复 work_dir 验证

This commit is contained in:
whyour
2026-06-07 13:56:06 +08:00
parent fd6b4e4cde
commit c14390cf41
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -82,4 +82,5 @@ export const commonCronSchema = {
'string.unsafePath': '绝对路径必须在日志目录内或使用 /dev/null',
}),
allow_multiple_instances: Joi.number().optional().valid(0, 1).allow(null),
work_dir: Joi.string().optional().allow('').allow(null),
};