From 43faa06ac087ec50c8e2aab7ebe9f3359cc847b9 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 5 Apr 2024 12:16:44 +0200 Subject: [PATCH] :bug: Fix problem with uploading temp files --- backend/src/app/rpc/commands/files_temp.clj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/app/rpc/commands/files_temp.clj b/backend/src/app/rpc/commands/files_temp.clj index 9ac4f7e5e..bc183cfd9 100644 --- a/backend/src/app/rpc/commands/files_temp.clj +++ b/backend/src/app/rpc/commands/files_temp.clj @@ -134,6 +134,9 @@ file)) file)] + ;; Delete changes from the changes history + (db/delete! conn :file-change {:file-id id}) + (db/update! conn :file {:deleted-at nil :revn 1