1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 13:08:17 -05:00

fix the trailing issue when autoscaling (#3889)

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
This commit is contained in:
cyprain-okeke 2024-03-12 17:17:46 +01:00 committed by GitHub
parent 532b70e26c
commit dd21d8fcf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -788,7 +788,7 @@ public class StripePaymentService : IPaymentService
ProrationDate = prorationDate,
};
var immediatelyInvoice = false;
if (!invoiceNow && isPm5864DollarThresholdEnabled)
if (!invoiceNow && isPm5864DollarThresholdEnabled && sub.Status.Trim() != "trialing")
{
var upcomingInvoiceWithChanges = await _stripeAdapter.InvoiceUpcomingAsync(new UpcomingInvoiceOptions
{