From de3252489111819f2927ff36de742617cc5b3102 Mon Sep 17 00:00:00 2001 From: Alex Morask <144709477+amorask-bitwarden@users.noreply.github.com> Date: Mon, 20 Nov 2023 15:33:10 -0500 Subject: [PATCH] Disable renewal email for org owners on invoice.upcoming (#3454) --- src/Billing/Controllers/StripeController.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Billing/Controllers/StripeController.cs b/src/Billing/Controllers/StripeController.cs index 64053b31f2..de8b9a6239 100644 --- a/src/Billing/Controllers/StripeController.cs +++ b/src/Billing/Controllers/StripeController.cs @@ -264,9 +264,16 @@ public class StripeController : Controller await SendEmails(new List { organization.BillingEmail }); - var ownerEmails = await _organizationRepository.GetOwnerEmailAddressesById(organization.Id); + /* + * TODO: https://bitwarden.atlassian.net/browse/PM-4862 + * Disabling this as part of a hot fix. It needs to check whether the organization + * belongs to a Reseller provider and only send an email to the organization owners if it does. + * It also requires a new email template as the current one contains too much billing information. + */ - await SendEmails(ownerEmails); + // var ownerEmails = await _organizationRepository.GetOwnerEmailAddressesById(organization.Id); + + // await SendEmails(ownerEmails); } else if (userId.HasValue) {