You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ma...@apache.org on 2022/09/28 03:39:43 UTC

[incubator-devlake] branch main updated: fix: fix scan to fetch (#3219)

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

mappjzc 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 ce660433 fix: fix scan to fetch (#3219)
ce660433 is described below

commit ce6604331be826824cc0c5c2299f6a3be2f07718
Author: mappjzc <zh...@merico.dev>
AuthorDate: Wed Sep 28 11:39:38 2022 +0800

    fix: fix scan to fetch (#3219)
    
    changed scan to fetch
    
    Nddtfjiang <zh...@merico.dev>
---
 plugins/webhook/api/cicd_pipeline.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/webhook/api/cicd_pipeline.go b/plugins/webhook/api/cicd_pipeline.go
index aa383938..0de18e85 100644
--- a/plugins/webhook/api/cicd_pipeline.go
+++ b/plugins/webhook/api/cicd_pipeline.go
@@ -183,9 +183,9 @@ func PostPipelineFinish(input *core.ApiResourceInput) (*core.ApiResourceOutput,
 	domainTasks := []devops.CICDTask{}
 	for cursor.Next() {
 		task := &devops.CICDTask{}
-		err = errors.Convert(cursor.Scan(task))
+		err = db.Fetch(cursor, task)
 		if err != nil {
-			return nil, errors.Default.Wrap(err, "error on Convert CICDTask data")
+			return nil, errors.Default.Wrap(err, "error on Fetch CICDTask data")
 		}
 		// set the IN_PROGRESS task to be ABORT
 		if task.Result == `IN_PROGRESS` {