From 36a4300071d5909927cce6758814f401b99fe9d3 Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Fri, 1 Dec 2023 20:19:10 +0530 Subject: [PATCH] chore: clean up --- scrapers/retention.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/scrapers/retention.go b/scrapers/retention.go index 4c5073eb..9823f903 100644 --- a/scrapers/retention.go +++ b/scrapers/retention.go @@ -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)