This is an automated email from the ASF dual-hosted git repository.

klesh 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 98fa3cff9 fix: remove prefix from scope ID (#5637)
98fa3cff9 is described below

commit 98fa3cff9e9472fec732f9489edfbe321f020aa0
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Jul 6 09:33:32 2023 +0800

    fix: remove prefix from scope ID (#5637)
---
 backend/plugins/zentao/models/project.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/backend/plugins/zentao/models/project.go 
b/backend/plugins/zentao/models/project.go
index 562c6cd77..42390d4f9 100644
--- a/backend/plugins/zentao/models/project.go
+++ b/backend/plugins/zentao/models/project.go
@@ -19,6 +19,7 @@ package models
 
 import (
        "fmt"
+       "strconv"
 
        "github.com/apache/incubator-devlake/core/models/common"
        "github.com/apache/incubator-devlake/core/plugin"
@@ -146,7 +147,7 @@ func (ZentaoProject) TableName() string {
 }
 
 func (p ZentaoProject) ScopeId() string {
-       return fmt.Sprintf(`projects/%d`, p.Id)
+       return strconv.FormatInt(p.Id, 10)
 }
 
 func (p ZentaoProject) ScopeName() string {

Reply via email to