diff --git a/CHANGES.md b/CHANGES.md index 6ac274712..7b9794529 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -70,6 +70,7 @@ - Disable empty names on rename files [Taiga #5088](https://tree.taiga.io/project/penpot/issue/5088) - Fix problem with SVG and flex layout [Taiga #](https://tree.taiga.io/project/penpot/issue/5099) - Fix unpublish and delete shared library warning messages [Taiga #5090](https://tree.taiga.io/project/penpot/issue/5090) +- Fix last update project timer update after creating new file [Taiga #5096](https://tree.taiga.io/project/penpot/issue/5096) ### :heart: Community contributions by (Thank you!) - To @ondrejkonec: for contributing to the code with: diff --git a/backend/src/app/rpc/commands/files_create.clj b/backend/src/app/rpc/commands/files_create.clj index 772d7aa25..f2cceed47 100644 --- a/backend/src/app/rpc/commands/files_create.clj +++ b/backend/src/app/rpc/commands/files_create.clj @@ -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