Skip to content

Commit

Permalink
Use last_checked_at column for dvo.report table cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
epapbak committed Jul 12, 2024
1 parent 65d25ae commit 01c05d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const (

deleteOldDVOReports = `
DELETE FROM dvo.dvo_report
WHERE reported_at < NOW() - $1::INTERVAL`
WHERE last_checked_at < NOW() - $1::INTERVAL`
)

// DB schemas
Expand Down

0 comments on commit 01c05d4

Please sign in to comment.