From bcd46f8e6c9308afbcdd6051ee1e1d7544df21e0 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Tue, 28 May 2024 18:45:59 +0545 Subject: [PATCH] Update jobs/cleanup.go Co-authored-by: Moshe Immerman --- jobs/cleanup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/cleanup.go b/jobs/cleanup.go index a57cbca0..3d450b3a 100644 --- a/jobs/cleanup.go +++ b/jobs/cleanup.go @@ -125,7 +125,7 @@ var CleanupConfigItems = &job.Job{ WHERE deleted_at < NOW() - interval '1 SECONDS' * ? AND id NOT IN (%s) - ORDER BY length(path) + ORDER BY length(path) DESC ) DELETE FROM config_items WHERE id IN (SELECT id FROM ordered_rows)`, linkedConfigsQuery)