From ed95c61bcacd6c97dcf747c570822d1bfb1b0c0c Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 3 Feb 2023 09:24:19 -0500 Subject: [PATCH] Fixing admin application email subject. Fixes #2688 (#2695) --- crates/api_common/src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/api_common/src/utils.rs b/crates/api_common/src/utils.rs index bf9bbf1b..689488fe 100644 --- a/crates/api_common/src/utils.rs +++ b/crates/api_common/src/utils.rs @@ -476,7 +476,7 @@ pub async fn send_new_applicant_email_to_admins( for admin in &admins { let email = &admin.local_user.email.clone().expect("email"); let lang = get_interface_language_from_settings(admin); - let subject = lang.new_application_subject(applicant_username, &settings.hostname); + let subject = lang.new_application_subject(&settings.hostname, applicant_username); let body = lang.new_application_body(applications_link); send_email(&subject, email, &admin.person.name, &body, settings)?; } -- 2.44.1