mirror of
https://github.com/penpot/penpot.git
synced 2025-05-14 13:16:38 +02:00
📎 Add additional reformating to specs naming
This commit is contained in:
parent
d54ebaa0d7
commit
abfca5c89a
8 changed files with 23 additions and 25 deletions
|
@ -29,7 +29,7 @@
|
|||
|
||||
(defn coerce-id
|
||||
[id]
|
||||
(let [res (us/uuid-conformer id)]
|
||||
(let [res (parse-uuid id)]
|
||||
(when-not (uuid? res)
|
||||
(ex/raise :type :not-found
|
||||
:hint "object not found"))
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
(:require
|
||||
[app.common.exceptions :as ex]
|
||||
[app.common.pprint :as pp]
|
||||
[app.common.spec :as us]
|
||||
[app.common.uuid :as uuid]
|
||||
[app.config :as cf]
|
||||
[app.db :as db]
|
||||
|
@ -205,7 +204,7 @@
|
|||
[{:keys [pool]} request]
|
||||
(letfn [(parse-id [request]
|
||||
(let [id (get-in request [:path-params :id])
|
||||
id (us/uuid-conformer id)]
|
||||
id (parse-uuid id)]
|
||||
(when (uuid? id)
|
||||
id)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue