Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Dec 1, 2023
1 parent a55fd75 commit 36a4300
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scrapers/retention.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@ func ProcessChangeRetention(ctx context.Context, scraperID uuid.UUID, spec v1.Ch
)
`

//query = `
//UPDATE config_changes
//SET deleted_at = NOW()
//WHERE
//change_type = ? AND
//config_id IN (SELECT id FROM config_item WHERE scraper_id = ?) AND
//((NOW() - created_at > INTERVAL '1 minute' * ?)) AND
//deleted_at IS NULL
//`

result := ctx.DB().Exec(query, spec.Name, scraperID, ageMinutes, spec.Count)
if err := result.Error; err != nil {
return fmt.Errorf("error retaining config changes: %w", err)
Expand Down

0 comments on commit 36a4300

Please sign in to comment.