chore: cron * 开头的 换成 0

This commit is contained in:
xiaojunnuo
2025-08-07 10:39:48 +08:00
parent fdcfcc77a0
commit 0af193c505

View File

@@ -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);