Skip to content

Commit cc62da4

Browse files
committed
chore: made where clause more explicit
1 parent b36dca8 commit cc62da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/sql/repository/pipelineConfig/CiTemplateRepository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (impl CiTemplateRepositoryImpl) FindByAppId(appId int) (ciTemplate *CiTempl
9797
func (impl CiTemplateRepositoryImpl) FindByDockerRegistryId(dockerRegistryId string) (ciTemplates []*CiTemplate, err error) {
9898
err = impl.dbConnection.Model(&ciTemplates).
9999
Join("JOIN app a ON ci_template.app_id = a.id").
100-
Where("docker_registry_id = ?", dockerRegistryId).
100+
Where("ci_template.docker_registry_id = ?", dockerRegistryId).
101101
Where("ci_template.active = ?", true).
102102
Where("a.active = ?", true).
103103
Select()

0 commit comments

Comments
 (0)