mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
修复 6 位 cron 不以 task 开头运行失败
This commit is contained in:
1 parent
590dbba19b
commit
6832cb4e22
2 files changed
+12
-2
No files matched your search
@@ -24,7 +24,7 @@ export default class CronService {
|
||||
|
||||
private isSixCron(cron: Crontab) {
|
||||
const { schedule } = cron;
|
||||
if (schedule?.split(/ +/).length === 6) {
|
||||
if (Number(schedule?.split(/ +/).length) > 5) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user