Skip to content

Commit

Permalink
fix(helpers): use isIncremental instead of SyncPolicy.FullSync (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
d4x1 authored Jul 23, 2024
1 parent d55b84c commit b2bd3b3
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 b2bd3b3

Please sign in to comment.