1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-02 18:06:07 +02:00

No longer sending upcoming invoice reminder for invoices with a $0 balance (#4593)

This commit is contained in:
Conner Turnbull 2024-08-20 15:36:15 -04:00 committed by GitHub
parent eb72a70bcf
commit fb270b538e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -147,7 +147,7 @@ public class UpcomingInvoiceHandler : IUpcomingInvoiceHandler
{
var validEmails = emails.Where(e => !string.IsNullOrEmpty(e));
if (invoice.NextPaymentAttempt.HasValue)
if (invoice.NextPaymentAttempt.HasValue && invoice.AmountDue > 0)
{
await _mailService.SendInvoiceUpcoming(
validEmails,