abeizn commented on code in PR #6064:
URL:
https://github.com/apache/incubator-devlake/pull/6064#discussion_r1324202411
##########
backend/helpers/pluginhelper/api/api_collector_with_state.go:
##########
@@ -154,18 +160,19 @@ func NewStatefulApiCollectorForFinalizableEntity(args
FinalizableApiCollectorArg
Options: args.Options,
Params: args.Params,
Table: args.Table,
- }, args.TimeAfter)
+ })
if err != nil {
return nil, err
}
// // prepare the basic variables
+ syncPolicy := manager.Ctx.TaskContext().SyncPolicy()
var isIncremental = manager.IsIncremental()
var createdAfter *time.Time
if isIncremental {
createdAfter = manager.LatestState.LatestSuccessStart
- } else {
- createdAfter = manager.TimeAfter
+ } else if syncPolicy != nil && syncPolicy.TimeAfter != nil {
Review Comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]