mirror of
https://github.com/certd/certd.git
synced 2026-04-16 05:50:50 +08:00
chore: cron * 开头的 换成 0
This commit is contained in:
@@ -458,10 +458,10 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
||||
}
|
||||
cron = cron.trim();
|
||||
if (cron.startsWith("* *")) {
|
||||
cron = cron.replace("* *", "0 0");
|
||||
cron = cron.replace("\* \*", "0 0");
|
||||
}
|
||||
if (cron.startsWith("*")) {
|
||||
cron = cron.replace(/\*/g, "0");
|
||||
cron = cron.replace("\*", "0");
|
||||
}
|
||||
const triggerId = trigger.id;
|
||||
const name = this.buildCronKey(pipelineId, triggerId);
|
||||
|
||||
Reference in New Issue
Block a user