From 22fd0ae306cab482e03b475df9d2cce1d9a31529 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Mon, 25 Mar 2024 12:52:17 +0100 Subject: [PATCH] :bug: Update modification date on publish/unpublish file as library --- backend/src/app/rpc/commands/files.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/app/rpc/commands/files.clj b/backend/src/app/rpc/commands/files.clj index b2a97c6cc8..601907e105 100644 --- a/backend/src/app/rpc/commands/files.clj +++ b/backend/src/app/rpc/commands/files.clj @@ -868,7 +868,8 @@ (db/delete! conn :file-library-rel {:library-file-id id}) (db/update! conn :file - {:is-shared false} + {:is-shared false + :modified-at (dt/now)} {:id id}) file) @@ -876,7 +877,8 @@ (true? (:is-shared params))) (let [file (assoc file :is-shared true)] (db/update! conn :file - {:is-shared true} + {:is-shared true + :modified-at (dt/now)} {:id id}) file)