mirror of
https://github.com/penpot/penpot.git
synced 2025-05-04 09:05:54 +02:00
💄 Add minor cosmetic improvement on profile rpc ns
This commit is contained in:
parent
9e4ed0ea92
commit
1c75e5b46b
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@
|
||||||
[:props {:optional true}
|
[:props {:optional true}
|
||||||
[:map-of {:title "ProfileProps"} :keyword :any]]])
|
[:map-of {:title "ProfileProps"} :keyword :any]]])
|
||||||
|
|
||||||
(def profile?
|
(def valid-profile?
|
||||||
(sm/pred-fn schema:profile))
|
(sm/pred-fn schema:profile))
|
||||||
|
|
||||||
;; --- QUERY: Get profile (own)
|
;; --- QUERY: Get profile (own)
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
|
|
||||||
(dm/assert!
|
(dm/assert!
|
||||||
"expected valid profile data"
|
"expected valid profile data"
|
||||||
(profile? params))
|
(valid-profile? params))
|
||||||
|
|
||||||
(db/with-atomic [conn pool]
|
(db/with-atomic [conn pool]
|
||||||
;; NOTE: we need to retrieve the profile independently if we use
|
;; NOTE: we need to retrieve the profile independently if we use
|
||||||
|
|
Loading…
Add table
Reference in a new issue