From 1c49dd80a4f4e5d92de1b15754672553464846fa Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Mon, 11 Nov 2024 17:18:53 +0100 Subject: [PATCH] :sparkles: Add from-invitation property to register-profile event --- backend/src/app/rpc/commands/auth.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/app/rpc/commands/auth.clj b/backend/src/app/rpc/commands/auth.clj index 1ed3fa364..062436dbe 100644 --- a/backend/src/app/rpc/commands/auth.clj +++ b/backend/src/app/rpc/commands/auth.clj @@ -383,7 +383,9 @@ invitation (when-let [token (:invitation-token params)] (tokens/verify (::setup/props cfg) {:token token :iss :team-invitation})) - props (audit/profile->props profile) + props (-> (audit/profile->props profile) + (assoc :from-invitation (some? invitation))) + create-welcome-file-when-needed (fn []