From 4599035676caa7425b08f9822403d1daf1b1559a Mon Sep 17 00:00:00 2001 From: Stefan Melmuk Date: Fri, 13 Sep 2024 21:41:39 +0200 Subject: [PATCH] fix invitation link via /admin --- src/mail.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/mail.rs b/src/mail.rs index ce5701716dd..f16ba69edaf 100644 --- a/src/mail.rs +++ b/src/mail.rs @@ -248,15 +248,11 @@ pub async fn send_invite( { let mut query_params = query.query_pairs_mut(); query_params + .append_pair("organizationId", org_id.as_deref().unwrap_or("_")) + .append_pair("organizationUserId", org_user_id.as_deref().unwrap_or("_")) .append_pair("email", &user.email) .append_pair("organizationName", org_name) .append_pair("token", &invite_token); - if let Some(id) = org_id { - query_params.append_pair("organizationId", &id); - }; - if let Some(id) = org_user_id { - query_params.append_pair("organizationUserId", &id); - }; if user.private_key.is_some() { query_params.append_pair("orgUserHasExistingUser", "true"); }