1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-06 21:48:12 -05:00

add account credit

This commit is contained in:
Kyle Spearrin 2019-03-21 23:11:53 -04:00
parent 5bfed59f9c
commit 5892842139

View File

@ -437,7 +437,7 @@ namespace Bit.Core.Services
await customerService.UpdateAsync(customer.Id, new CustomerUpdateOptions
{
AccountBalance = -1 * previewInvoice.AmountDue
AccountBalance = customer.AccountBalance - previewInvoice.AmountDue
});
addedCreditToStripeCustomer = true;
}