0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00

🐛 Update modification date on publish/unpublish file as library

This commit is contained in:
Alejandro Alonso 2024-03-25 12:52:17 +01:00 committed by Andrey Antukh
parent ffe505e525
commit 22fd0ae306

View file

@ -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)