mirror of
https://github.com/certd/certd.git
synced 2026-04-27 23:37:29 +08:00
chore: cron * 开头的 换成 0
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user