From 6caa3e312c1e5bd04d00ab8dfc68c68381348c51 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Thu, 31 Jan 2019 02:19:47 -0500 Subject: [PATCH] cron_domain_export_cleanup.go: change cron period --- api/cron_domain_export_cleanup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/cron_domain_export_cleanup.go b/api/cron_domain_export_cleanup.go index ec19016..9d909bb 100644 --- a/api/cron_domain_export_cleanup.go +++ b/api/cron_domain_export_cleanup.go @@ -11,7 +11,7 @@ func domainExportCleanupBegin() error { DELETE FROM exports WHERE creationDate < $1; ` - _, err := db.Exec(statement, time.Now().UTC().AddDate(0, -7, 0)) + _, err := db.Exec(statement, time.Now().UTC().AddDate(0, 0, -7)) if err != nil { logger.Errorf("error cleaning up export rows: %v", err) return