Fix json schema type issues in schedules

This commit is contained in:
Andrew 2023-05-11 21:48:25 -04:00
parent 1ab409f5cb
commit 6988ed31f6

View File

@ -235,7 +235,14 @@
if (key != "start_time" && key != "cron_string" && key != "interval_type") {
if (typeof value == "boolean") {
return value
} else {
}
console.log(key)
if (key === "interval" && value === ""){
return 0;
}
if (key === "command" && typeof(value === "integer")){
return value.toString();
}else {
return (isNaN(value) ? value : +value);
}
} else {