mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-24 01:14:20 +01:00
Fix building error
This commit is contained in:
@@ -57,7 +57,9 @@ namespace BTCPayServer.Data
|
|||||||
return storeData.GetEnabledPaymentIds(networkProvider).Select(paymentMethodId=>
|
return storeData.GetEnabledPaymentIds(networkProvider).Select(paymentMethodId=>
|
||||||
{
|
{
|
||||||
var matchedFromBlob =
|
var matchedFromBlob =
|
||||||
|
#pragma warning disable CS0618 // Type or member is obsolete
|
||||||
storeBlob.PaymentMethodCriteria?.SingleOrDefault(criteria => criteria.PaymentMethod == paymentMethodId && criteria.Value != null);
|
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)
|
if (matchedFromBlob is null && paymentMethodId.PaymentType == LightningPaymentType.Instance && storeBlob.LightningMaxValue != null)
|
||||||
{
|
{
|
||||||
return new PaymentMethodCriteria()
|
return new PaymentMethodCriteria()
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ using System.Linq;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Channels;
|
using System.Threading.Channels;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using AngleSharp.Dom.Events;
|
||||||
using BTCPayServer.Client.Models;
|
using BTCPayServer.Client.Models;
|
||||||
using BTCPayServer.Data;
|
using BTCPayServer.Data;
|
||||||
using BTCPayServer.Events;
|
using BTCPayServer.Events;
|
||||||
@@ -177,7 +178,7 @@ namespace BTCPayServer.Payments.Lightning
|
|||||||
if (_InstanceListeners.TryGetValue(instanceListenerKey, out var instanceListener))
|
if (_InstanceListeners.TryGetValue(instanceListenerKey, out var instanceListener))
|
||||||
{
|
{
|
||||||
|
|
||||||
await _InvoiceRepository.NewAddress(invoice.Id, newPaymentMethodDetails,
|
await _InvoiceRepository.NewPaymentDetails(invoice.Id, newPaymentMethodDetails,
|
||||||
paymentMethod.Network);
|
paymentMethod.Network);
|
||||||
|
|
||||||
instanceListener.AddListenedInvoice(new ListenedInvoice()
|
instanceListener.AddListenedInvoice(new ListenedInvoice()
|
||||||
@@ -191,8 +192,8 @@ namespace BTCPayServer.Payments.Lightning
|
|||||||
InvoiceId = invoice.Id
|
InvoiceId = invoice.Id
|
||||||
});
|
});
|
||||||
|
|
||||||
_Aggregator.Publish(new InvoiceNewAddressEvent(invoice.Id,
|
_Aggregator.Publish(new Events.InvoiceNewPaymentDetailsEvent(invoice.Id,
|
||||||
newPaymentMethodDetails.GetPaymentDestination(), paymentMethod.Network));
|
newPaymentMethodDetails, paymentMethod.GetId()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
Reference in New Issue
Block a user