Skip to content

Commit a0de0e4

Browse files
committed
mistake in CheckIfPluginExistsInPipelineStage, plugin_stage_step-> pipeline_stage_step
1 parent f3e03e8 commit a0de0e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/pipeline/repository/PipelineStageRepository.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -895,10 +895,10 @@ func (impl *PipelineStageRepositoryImpl) CheckIfPluginExistsInPipelineStage(pipe
895895
var step PipelineStageStep
896896
query := impl.dbConnection.Model(&step).
897897
Column("pipeline_stage_step.*").
898-
Join("INNER JOIN pipeline_stage ps on ps.id = plugin_stage_step.pipeline_stage_id").
899-
Where("plugin_stage_step.ref_plugin_id = ?", pluginId).
898+
Join("INNER JOIN pipeline_stage ps on ps.id = pipeline_stage_step.pipeline_stage_id").
899+
Where("pipeline_stage_step.ref_plugin_id = ?", pluginId).
900900
Where("ps.type = ?", stageType).
901-
Where("plugin_stage_step.deleted=?", false).
901+
Where("pipeline_stage_step.deleted=?", false).
902902
Where("ps.deleted= ?", false)
903903

904904
if stageType.IsStageTypePostCi() || stageType.IsStageTypePostCi() {

0 commit comments

Comments
 (0)