mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 19:14:32 -05:00
Don't try to credit customer \$0 (#4964)
This commit is contained in:
parent
edd31bcf4e
commit
f149f247d5
@ -325,6 +325,8 @@ public class ProviderMigrator(
|
|||||||
|
|
||||||
var organizationCancellationCredit = organizationCustomers.Sum(customer => customer.Balance);
|
var organizationCancellationCredit = organizationCustomers.Sum(customer => customer.Balance);
|
||||||
|
|
||||||
|
if (organizationCancellationCredit != 0)
|
||||||
|
{
|
||||||
await stripeAdapter.CustomerBalanceTransactionCreate(provider.GatewayCustomerId,
|
await stripeAdapter.CustomerBalanceTransactionCreate(provider.GatewayCustomerId,
|
||||||
new CustomerBalanceTransactionCreateOptions
|
new CustomerBalanceTransactionCreateOptions
|
||||||
{
|
{
|
||||||
@ -332,6 +334,7 @@ public class ProviderMigrator(
|
|||||||
Currency = "USD",
|
Currency = "USD",
|
||||||
Description = "Unused, prorated time for client organization subscriptions."
|
Description = "Unused, prorated time for client organization subscriptions."
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
var migrationRecords = await Task.WhenAll(organizations.Select(organization =>
|
var migrationRecords = await Task.WhenAll(organizations.Select(organization =>
|
||||||
clientOrganizationMigrationRecordRepository.GetByOrganizationId(organization.Id)));
|
clientOrganizationMigrationRecordRepository.GetByOrganizationId(organization.Id)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user