0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-31 09:01:20 -05:00

💄 Add minor cosmetic improvement on profile rpc ns

This commit is contained in:
Andrey Antukh 2023-11-11 00:09:40 +01:00
parent 9e4ed0ea92
commit 1c75e5b46b

View file

@ -53,7 +53,7 @@
[:props {:optional true}
[:map-of {:title "ProfileProps"} :keyword :any]]])
(def profile?
(def valid-profile?
(sm/pred-fn schema:profile))
;; --- QUERY: Get profile (own)
@ -95,7 +95,7 @@
(dm/assert!
"expected valid profile data"
(profile? params))
(valid-profile? params))
(db/with-atomic [conn pool]
;; NOTE: we need to retrieve the profile independently if we use