From 526b6e1f0323dd4fd3e0b2d07fdce1a81af47ff8 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 2 Feb 2021 09:30:43 +0100 Subject: [PATCH] :bug: Unexpected exception on handling of invitation user registration. --- backend/src/app/rpc/mutations/profile.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/app/rpc/mutations/profile.clj b/backend/src/app/rpc/mutations/profile.clj index 5abab1086..9f852ad3f 100644 --- a/backend/src/app/rpc/mutations/profile.clj +++ b/backend/src/app/rpc/mutations/profile.clj @@ -78,8 +78,10 @@ ;; profile data. (let [claims (tokens :verify {:token token :iss :team-invitation}) claims (assoc claims :member-id (:id profile)) - params (assoc params :profile-id (:id profile))] - (process-token conn params claims) + params (assoc params :profile-id (:id profile)) + cfg (assoc cfg :conn conn)] + + (process-token cfg params claims) ;; Automatically mark the created profile as active because ;; we already have the verification of email with the