mirror of
https://github.com/certd/certd.git
synced 2026-04-28 07:57:25 +08:00
fix: 修复模版id不正确导致修改到错误的模版流水线bug
This commit is contained in:
@@ -29,15 +29,15 @@ const pipelineOptions: PipelineOptions = {
|
|||||||
onLoaded(detail);
|
onLoaded(detail);
|
||||||
return {
|
return {
|
||||||
pipeline: {
|
pipeline: {
|
||||||
id: detail.pipeline.id,
|
|
||||||
stages: [],
|
stages: [],
|
||||||
triggers: [],
|
triggers: [],
|
||||||
...JSON.parse(detail.pipeline.content || "{}"),
|
...JSON.parse(detail.pipeline.content || "{}"),
|
||||||
type: detail.pipeline.type,
|
id: detail.pipeline.id,
|
||||||
from: detail.pipeline.from,
|
|
||||||
userId: detail.pipeline.userId,
|
userId: detail.pipeline.userId,
|
||||||
projectId: detail.pipeline.projectId,
|
projectId: detail.pipeline.projectId,
|
||||||
},
|
},
|
||||||
|
type: detail.pipeline.type,
|
||||||
|
from: detail.pipeline.from,
|
||||||
validTime: detail.pipeline.validTime,
|
validTime: detail.pipeline.validTime,
|
||||||
webhookKey: detail.pipeline.webhookKey,
|
webhookKey: detail.pipeline.webhookKey,
|
||||||
id: detail.pipeline.id,
|
id: detail.pipeline.id,
|
||||||
|
|||||||
@@ -274,6 +274,9 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
|||||||
RunnableCollection.initPipelineRunnableType(pipeline);
|
RunnableCollection.initPipelineRunnableType(pipeline);
|
||||||
pipeline.userId = bean.userId;
|
pipeline.userId = bean.userId;
|
||||||
pipeline.projectId = bean.projectId;
|
pipeline.projectId = bean.projectId;
|
||||||
|
if (bean.id) {
|
||||||
|
pipeline.id = bean.id;
|
||||||
|
}
|
||||||
let domains = [];
|
let domains = [];
|
||||||
if (pipeline.stages) {
|
if (pipeline.stages) {
|
||||||
RunnableCollection.each(pipeline.stages, (runnable: any) => {
|
RunnableCollection.each(pipeline.stages, (runnable: any) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user