0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Allow debug load file with random uuid

This commit is contained in:
Andrés Moya 2022-05-25 09:52:32 +02:00
parent 02427285ef
commit ef37abcbbd

View file

@ -100,7 +100,10 @@
(if (and data project-id)
(let [fname (str "imported-file-" (dt/now))
file-id (uuid/uuid (-> params :file :filename))
file-id (try
(uuid/uuid (-> params :file :filename))
(catch Exception err
(uuid/next)))
file (db/exec-one! pool (sql/select :file {:id file-id}))]
(if file
(db/update! pool :file