Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
chore: Revert cleanup-stale-data filter change
Browse files Browse the repository at this point in the history
From #265
  • Loading branch information
disq committed May 23, 2022
1 parent 1f74be7 commit 09038e2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions provider/execution/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,8 @@ func (e TableExecutor) callTableResolve(ctx context.Context, client schema.Clien
e.Logger.Info("fetched successfully", "count", nc)
}

if !diags.HasErrors() {
if err := e.cleanupStaleData(ctx, client, parent); err != nil {
return nc, diags.Add(fromError(err, diag.WithType(diag.DATABASE), diag.WithSummary("failed to cleanup stale data on table %q", e.Table.Name)))
}
if err := e.cleanupStaleData(ctx, client, parent); err != nil {
return nc, diags.Add(fromError(err, diag.WithType(diag.DATABASE), diag.WithSummary("failed to cleanup stale data on table %q", e.Table.Name)))
}

return nc, diags
Expand Down

0 comments on commit 09038e2

Please sign in to comment.