mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 00:58:26 -05:00
✨ Do not return the whole file on file rename
This commit is contained in:
parent
951b3eb4fe
commit
c0eab96253
1 changed files with 5 additions and 4 deletions
|
@ -119,10 +119,11 @@
|
|||
|
||||
(defn- rename-file
|
||||
[conn {:keys [id name] :as params}]
|
||||
(db/update! conn :file
|
||||
{:name name}
|
||||
{:id id}))
|
||||
|
||||
(-> (db/update! conn :file
|
||||
{:name name
|
||||
:modified-at (dt/now)}
|
||||
{:id id})
|
||||
(select-keys [:id :name :created-at :modified-at])))
|
||||
|
||||
;; --- Mutation: Set File shared
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue