This is an automated email from the ASF dual-hosted git repository.
zhangliang2022 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new fc3dd6891 fix: jenkins scope api error (#4037)
fc3dd6891 is described below
commit fc3dd68916ec230ff11d9b521c279a13e9c35ad4
Author: abeizn <[email protected]>
AuthorDate: Tue Dec 27 17:19:13 2022 +0800
fix: jenkins scope api error (#4037)
* fix: jenkins scope api error
* fix: jenkins scope api error
---
plugins/jenkins/api/scope.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/jenkins/api/scope.go b/plugins/jenkins/api/scope.go
index da9f35e28..737de73fa 100644
--- a/plugins/jenkins/api/scope.go
+++ b/plugins/jenkins/api/scope.go
@@ -184,7 +184,7 @@ func GetScope(input *core.ApiResourceInput)
(*core.ApiResourceOutput, errors.Err
}
var rule models.JenkinsJob
if job.TransformationRuleId > 0 {
- err = basicRes.GetDal().First(&rule, dal.Where("id = ?",
job.TransformationRuleId))
+ err = basicRes.GetDal().First(&rule,
dal.Where("transformation_rule_id = ?", job.TransformationRuleId))
if err != nil {
return nil, err
}