Merge pull request #1716 from arc3x/pull-payment-view-filter-fix

Fix: Filter payouts by PullPaymentDataId when fetching transactions for a specific pull payment
This commit is contained in:
Nicolas Dorier 2020-07-13 17:40:55 +09:00 committed by GitHub
commit b728cd61ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,16 +23,16 @@ namespace BTCPayServer.Data
var start = p.Start;
if (p.End is DateTimeOffset end)
{
return payouts.Where(p => p.Date >= start && p.Date < end);
return request.Where(p => p.Date >= start && p.Date < end);
}
else
{
return payouts.Where(p => p.Date >= start);
return request.Where(p => p.Date >= start);
}
}
else
{
return payouts.Where(p => false);
return request.Where(p => false);
}
}
}