From 4cd9237f478155bc10cbeb796afc5e47cb98148b Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 12 Feb 2024 10:03:11 +0100 Subject: [PATCH] :bug: Fix unexpected exception on task-gc Because table was renamed but the sql on the task function still uses the old name. --- backend/src/app/tasks/tasks_gc.clj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/app/tasks/tasks_gc.clj b/backend/src/app/tasks/tasks_gc.clj index 69dd11dfd7..77f1f92fa8 100644 --- a/backend/src/app/tasks/tasks_gc.clj +++ b/backend/src/app/tasks/tasks_gc.clj @@ -16,8 +16,7 @@ (def ^:private sql:delete-completed-tasks - "delete from task_completed - where scheduled_at < now() - ?::interval") + "DELETE FROM task WHERE scheduled_at < now() - ?::interval") (defmethod ig/pre-init-spec ::handler [_] (s/keys :req [::db/pool]))