mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 09:13:49 +08:00
fix: lint
This commit is contained in:
@@ -46,7 +46,11 @@ const parseCron = (cron: string) => {
|
||||
return
|
||||
}
|
||||
|
||||
const [minute, hour, day, month, weekday] = parts
|
||||
const minute = parts[0]!
|
||||
const hour = parts[1]!
|
||||
const day = parts[2]!
|
||||
const month = parts[3]!
|
||||
const weekday = parts[4]!
|
||||
|
||||
// 每 N 分钟:*/N * * * *
|
||||
if (minute.startsWith('*/') && hour === '*' && day === '*' && month === '*' && weekday === '*') {
|
||||
|
||||
Reference in New Issue
Block a user