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:
parent
ffe505e525
commit
22fd0ae306
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue