Skip to content

Commit

Permalink
Merge pull request #1556 from flanksource/transformed-fix
Browse files Browse the repository at this point in the history
fix: transformed checks returning correct id
  • Loading branch information
moshloop authored Jan 3, 2024
2 parents d12f8fe + 8b52bdf commit 1531c0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (c *postgresCache) AddCheckFromStatus(check pkg.Check, status pkg.CheckStat
}

if check.ID != uuid.Nil {
return uuid.Nil, nil
return check.ID, nil
}

return db.PersistCheck(c.DB(), check, check.CanaryID)
Expand Down
1 change: 1 addition & 0 deletions pkg/jobs/canary/canary_jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func (j CanaryJob) Run(ctx dutyjob.JobRuntime) error {

// Update last runtime map
canaryLastRuntimes.Store(canaryID, time.Now())
ctx.History.SuccessCount = len(results)
return nil
}

Expand Down

0 comments on commit 1531c0e

Please sign in to comment.