Skip to content

Commit

Permalink
fix(helpers): use isIncremental instead of SyncPolicy.FullSync (#…
Browse files Browse the repository at this point in the history
…7773) (#7774)

Co-authored-by: Lynwee <1507509064@qq.com>
  • Loading branch information
github-actions[bot] and d4x1 authored Jul 23, 2024
1 parent 87f5965 commit 4723801
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/helpers/pluginhelper/api/api_collector_stateful.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ func NewStatefulApiCollectorForFinalizableEntity(args FinalizableApiCollectorArg
return nil, err
}

syncPolicy := args.Ctx.TaskContext().SyncPolicy()
if args.CollectUnfinishedDetails == nil || (syncPolicy != nil && syncPolicy.FullSync) {
if args.CollectUnfinishedDetails == nil || !isIncremental {
return manager, nil
}

Expand Down

0 comments on commit 4723801

Please sign in to comment.