From 9c25723ee3932b3f797ab13484b64569998881db Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 10 Apr 2024 09:49:24 +0200 Subject: [PATCH] :paperclip: Add note about fragments on object-gc ns --- backend/src/app/tasks/objects_gc.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/app/tasks/objects_gc.clj b/backend/src/app/tasks/objects_gc.clj index c5e74ce3a..3caed3271 100644 --- a/backend/src/app/tasks/objects_gc.clj +++ b/backend/src/app/tasks/objects_gc.clj @@ -210,6 +210,9 @@ :project-id (str project-id) :deleted-at (dt/format-instant deleted-at)) + ;; NOTE: fragments not handled here because they have + ;; cascade. + ;; And finally, permanently delete the file. (db/delete! conn :file {:id id}) @@ -230,7 +233,6 @@ (inc total)) 0))) - (def ^:private sql:get-file-thumbnails "SELECT file_id, revn, media_id, deleted_at FROM file_thumbnail