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