Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions backend/helpers/pluginhelper/api/graphql_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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")
Expand Down