From 35ca3ec8951c89f3e0605f5250de7d9cead26e42 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 4 Aug 2021 10:42:22 +0200 Subject: [PATCH] :bug: Fix loggin issue when user uses the same email as previously deleted profile. --- backend/src/app/rpc/queries/profile.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/app/rpc/queries/profile.clj b/backend/src/app/rpc/queries/profile.clj index da36bb6647..5e1456c605 100644 --- a/backend/src/app/rpc/queries/profile.clj +++ b/backend/src/app/rpc/queries/profile.clj @@ -95,7 +95,8 @@ (defn retrieve-profile-data-by-email [conn email] (try - (db/get-by-params conn :profile {:email (str/lower email)}) + (db/get-by-params conn :profile {:email (str/lower email) + :deleted-at nil}) (catch Exception _e))) ;; --- Attrs Helpers