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 f276efc20 fix: trigger tapd collect throws 500 error (#7499)
f276efc20 is described below

commit f276efc20fa011d57ec1759c4ac88e402de09486
Author: Klesh Wong <[email protected]>
AuthorDate: Thu May 23 16:03:02 2024 +0800

    fix: trigger tapd collect throws 500 error (#7499)
---
 backend/plugins/tapd/api/blueprint_v200.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/plugins/tapd/api/blueprint_v200.go 
b/backend/plugins/tapd/api/blueprint_v200.go
index 87f9aef0f..676ed30cf 100644
--- a/backend/plugins/tapd/api/blueprint_v200.go
+++ b/backend/plugins/tapd/api/blueprint_v200.go
@@ -98,7 +98,7 @@ func makeScopesV200(
 
                // add wrokspace to scopes
                if utils.StringsContains(scopeConfig.Entities, 
plugin.DOMAIN_TYPE_TICKET) {
-                       id := idgen.Generate(connection.ID, tapdWorkspace)
+                       id := idgen.Generate(connection.ID, tapdWorkspace.Id)
                        board := ticket.NewBoard(id, tapdWorkspace.Name)
                        board.Type = "scrum"
                        scopes = append(scopes, board)

Reply via email to