🐛 Fix last update project timer update after creating new file

This commit is contained in:
Alejandro Alonso 2023-03-29 10:58:26 +02:00 committed by Alonso Torres
parent 3e6b3bcdc4
commit fa4c7a1eb7
2 changed files with 6 additions and 0 deletions

View file

@ -23,6 +23,7 @@
[app.util.objects-map :as omap]
[app.util.pointer-map :as pmap]
[app.util.services :as sv]
[app.util.time :as dt]
[clojure.spec.alpha :as s]))
(defn create-file-role!
@ -67,6 +68,10 @@
(->> (assoc params :file-id id :role :owner)
(create-file-role! conn))
(db/update! conn :project
{:modified-at (dt/now)}
{:id project-id})
(files/decode-row file)))
(s/def ::create-file