Fix building error

This commit is contained in:
nicolas.dorier
2020-09-30 20:54:17 +09:00
parent a66578c46d
commit f28a898053
2 changed files with 6 additions and 3 deletions

View File

@@ -57,7 +57,9 @@ namespace BTCPayServer.Data
return storeData.GetEnabledPaymentIds(networkProvider).Select(paymentMethodId=>
{
var matchedFromBlob =
#pragma warning disable CS0618 // Type or member is obsolete
storeBlob.PaymentMethodCriteria?.SingleOrDefault(criteria => criteria.PaymentMethod == paymentMethodId && criteria.Value != null);
#pragma warning restore CS0618 // Type or member is obsolete
if (matchedFromBlob is null && paymentMethodId.PaymentType == LightningPaymentType.Instance && storeBlob.LightningMaxValue != null)
{
return new PaymentMethodCriteria()