From 53e74ec5cddbbbc35efe271951a602c4f1d3c2a1 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 19 Jul 2019 08:36:44 +0000 Subject: [PATCH] fix(backend): fix incorrect raise on users service. --- backend/src/uxbox/services/users.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/uxbox/services/users.clj b/backend/src/uxbox/services/users.clj index 914fd59160..40dab1829c 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}]