mirror of https://github.com/certd/certd
chore: cron * 开头的 换成 0
parent
fdcfcc77a0
commit
0af193c505
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue