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:
parent
5bfed59f9c
commit
5892842139
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user