This is an automated email from the ASF dual-hosted git repository. abeizn pushed a commit to branch release-v0.16 in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 297861e745e41f0b3615219a4664677a2c1c51be Author: Liang Zhang <[email protected]> AuthorDate: Fri Apr 21 17:30:50 2023 +0800 fix: resolution_date is early than created_date (#4998) --- backend/helpers/pluginhelper/api/graphql_collector.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/helpers/pluginhelper/api/graphql_collector.go b/backend/helpers/pluginhelper/api/graphql_collector.go index 67e3eca80..2007dbfc6 100644 --- a/backend/helpers/pluginhelper/api/graphql_collector.go +++ b/backend/helpers/pluginhelper/api/graphql_collector.go @@ -305,9 +305,6 @@ func (collector *GraphqlCollector) ExtractExistRawData(divider *BatchSaveDivider defer cursor.Close() row := &RawData{} - // get the type of query and variables - query, variables, _ := collector.args.BuildQuery(nil) - // prgress collector.args.Ctx.SetProgress(0, -1) ctx := collector.args.Ctx.GetContext() @@ -318,6 +315,8 @@ func (collector *GraphqlCollector) ExtractExistRawData(divider *BatchSaveDivider return errors.Convert(ctx.Err()) default: } + // get the type of query and variables. For each iteration, the query should be a different object + query, variables, _ := collector.args.BuildQuery(nil) err = db.Fetch(cursor, row) if err != nil { return errors.Default.Wrap(err, "error fetching row")
