1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 09:32:48 -05:00

Update stripe lib (#793)

This commit is contained in:
Kyle Spearrin
2020-06-24 21:24:19 -04:00
committed by GitHub
parent 0f2ea43454
commit f23a8edc45
3 changed files with 5 additions and 6 deletions

View File

@ -835,7 +835,7 @@ namespace Bit.Core.Services
if (charges?.Data != null)
{
var refundService = new RefundService();
foreach (var charge in charges.Data.Where(c => c.Captured.GetValueOrDefault() && !c.Refunded))
foreach (var charge in charges.Data.Where(c => c.Captured && !c.Refunded))
{
await refundService.CreateAsync(new RefundCreateOptions { Charge = charge.Id });
}