mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Fix tests
This commit is contained in:
parent
24b8ec16f1
commit
a4d72d5bbc
1 changed files with 2 additions and 3 deletions
|
@ -17,6 +17,7 @@ using BTCPayServer.Data.Payouts.LightningLike;
|
||||||
using BTCPayServer.Events;
|
using BTCPayServer.Events;
|
||||||
using BTCPayServer.HostedServices;
|
using BTCPayServer.HostedServices;
|
||||||
using BTCPayServer.Lightning;
|
using BTCPayServer.Lightning;
|
||||||
|
using BTCPayServer.Logging;
|
||||||
using BTCPayServer.Payments;
|
using BTCPayServer.Payments;
|
||||||
using BTCPayServer.Payments.Lightning;
|
using BTCPayServer.Payments.Lightning;
|
||||||
using BTCPayServer.Plugins.Crowdfund;
|
using BTCPayServer.Plugins.Crowdfund;
|
||||||
|
@ -677,15 +678,13 @@ namespace BTCPayServer
|
||||||
paymentMethodDetails.InvoiceId = invoice.Id;
|
paymentMethodDetails.InvoiceId = invoice.Id;
|
||||||
paymentMethodDetails.GeneratedBoltAmount = amt;
|
paymentMethodDetails.GeneratedBoltAmount = amt;
|
||||||
updatePaymentMethod = true;
|
updatePaymentMethod = true;
|
||||||
|
|
||||||
_eventAggregator.Publish(new InvoiceNewPaymentDetailsEvent(invoiceId,
|
|
||||||
paymentMethodDetails, pmi));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (updatePaymentMethod)
|
if (updatePaymentMethod)
|
||||||
{
|
{
|
||||||
lightningPaymentMethod.SetPaymentMethodDetails(paymentMethodDetails);
|
lightningPaymentMethod.SetPaymentMethodDetails(paymentMethodDetails);
|
||||||
await _invoiceRepository.UpdateInvoicePaymentMethod(invoiceId, lightningPaymentMethod);
|
await _invoiceRepository.UpdateInvoicePaymentMethod(invoiceId, lightningPaymentMethod);
|
||||||
|
_eventAggregator.Publish(new InvoiceNewPaymentDetailsEvent(invoiceId, paymentMethodDetails, pmi));
|
||||||
}
|
}
|
||||||
|
|
||||||
return Ok(new LNURLPayRequest.LNURLPayRequestCallbackResponse
|
return Ok(new LNURLPayRequest.LNURLPayRequestCallbackResponse
|
||||||
|
|
Loading…
Add table
Reference in a new issue