chore: cron * 开头的 换成 0

v2
xiaojunnuo 2025-08-07 10:39:48 +08:00
parent fdcfcc77a0
commit 0af193c505
1 changed files with 2 additions and 2 deletions

View File

@ -458,10 +458,10 @@ export class PipelineService extends BaseService<PipelineEntity> {
} }
cron = cron.trim(); cron = cron.trim();
if (cron.startsWith("* *")) { if (cron.startsWith("* *")) {
cron = cron.replace("* *", "0 0"); cron = cron.replace("\* \*", "0 0");
} }
if (cron.startsWith("*")) { if (cron.startsWith("*")) {
cron = cron.replace(/\*/g, "0"); cron = cron.replace("\*", "0");
} }
const triggerId = trigger.id; const triggerId = trigger.id;
const name = this.buildCronKey(pipelineId, triggerId); const name = this.buildCronKey(pipelineId, triggerId);