mirror of
https://github.com/bitwarden/server.git
synced 2025-05-29 23:34:53 -05:00
fix ambig. transaction refs
This commit is contained in:
parent
25f3b76e6b
commit
24fbec6c0e
@ -100,7 +100,8 @@ namespace Bit.Core.Services
|
|||||||
|
|
||||||
if((transactions?.MaximumCount ?? 0) > 0)
|
if((transactions?.MaximumCount ?? 0) > 0)
|
||||||
{
|
{
|
||||||
foreach(var transaction in transactions.Cast<Transaction>().Where(c => c.RefundedTransactionId == null))
|
var txs = transactions.Cast<Braintree.Transaction>().Where(c => c.RefundedTransactionId == null);
|
||||||
|
foreach(var transaction in txs)
|
||||||
{
|
{
|
||||||
await _gateway.Transaction.RefundAsync(transaction.Id);
|
await _gateway.Transaction.RefundAsync(transaction.Id);
|
||||||
}
|
}
|
||||||
@ -190,8 +191,8 @@ namespace Bit.Core.Services
|
|||||||
|
|
||||||
var transactionRequest = new TransactionSearchRequest().CustomerId.Is(customer.Id);
|
var transactionRequest = new TransactionSearchRequest().CustomerId.Is(customer.Id);
|
||||||
var transactions = _gateway.Transaction.Search(transactionRequest);
|
var transactions = _gateway.Transaction.Search(transactionRequest);
|
||||||
billingInfo.Charges = transactions?.Cast<Transaction>().OrderByDescending(t => t.CreatedAt)
|
billingInfo.Charges = transactions?.Cast<Braintree.Transaction>()
|
||||||
.Select(t => new BillingInfo.BillingCharge(t));
|
.OrderByDescending(t => t.CreatedAt).Select(t => new BillingInfo.BillingCharge(t));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user