mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
fix(backend): fix incorrect raise on users service.
This commit is contained in:
@@ -54,7 +54,8 @@
|
||||
(ex/raise :type :validation
|
||||
:code ::email-already-exists))
|
||||
(when (:val (sc/fetch-one conn sqlv2))
|
||||
(ex/raise ::username-already-exists))))
|
||||
(ex/raise :type :validation
|
||||
:code ::username-already-exists))))
|
||||
|
||||
(defn- update-profile
|
||||
[conn {:keys [id username email fullname metadata] :as params}]
|
||||
|
||||
Reference in New Issue
Block a user