cron_domain_export_cleanup.go: change cron period
This commit is contained in:
parent
94829d9b83
commit
6caa3e312c
@ -11,7 +11,7 @@ func domainExportCleanupBegin() error {
|
|||||||
DELETE FROM exports
|
DELETE FROM exports
|
||||||
WHERE creationDate < $1;
|
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 {
|
if err != nil {
|
||||||
logger.Errorf("error cleaning up export rows: %v", err)
|
logger.Errorf("error cleaning up export rows: %v", err)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user