mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 23:47:10 +02:00
fix(backend): fix incorrect raise on users service.
This commit is contained in:
parent
c2815d15ed
commit
53e74ec5cd
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@
|
||||||
(ex/raise :type :validation
|
(ex/raise :type :validation
|
||||||
:code ::email-already-exists))
|
:code ::email-already-exists))
|
||||||
(when (:val (sc/fetch-one conn sqlv2))
|
(when (:val (sc/fetch-one conn sqlv2))
|
||||||
(ex/raise ::username-already-exists))))
|
(ex/raise :type :validation
|
||||||
|
:code ::username-already-exists))))
|
||||||
|
|
||||||
(defn- update-profile
|
(defn- update-profile
|
||||||
[conn {:keys [id username email fullname metadata] :as params}]
|
[conn {:keys [id username email fullname metadata] :as params}]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue