diff --git a/backend/src/uxbox/services/users.clj b/backend/src/uxbox/services/users.clj index 914fd5916..40dab1829 100644 --- a/backend/src/uxbox/services/users.clj +++ b/backend/src/uxbox/services/users.clj @@ -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}]