mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 04:56:38 +02: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)
|
(if (and data project-id)
|
||||||
(let [fname (str "imported-file-" (dt/now))
|
(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}))]
|
file (db/exec-one! pool (sql/select :file {:id file-id}))]
|
||||||
(if file
|
(if file
|
||||||
(db/update! pool :file
|
(db/update! pool :file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue