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:
parent
02427285ef
commit
ef37abcbbd
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue