mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 06:35:13 +01:00
do not send IPN if not set
This commit is contained in:
parent
f340c6eb7f
commit
ecb82f2cc9
3 changed files with 4 additions and 2 deletions
|
@ -37,7 +37,7 @@ services:
|
||||||
- postgres
|
- postgres
|
||||||
|
|
||||||
nbxplorer:
|
nbxplorer:
|
||||||
image: nicolasdorier/nbxplorer:1.0.0.68
|
image: nicolasdorier/nbxplorer:1.0.0.70
|
||||||
ports:
|
ports:
|
||||||
- "32838:32838"
|
- "32838:32838"
|
||||||
expose:
|
expose:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
<Version>1.0.0.81</Version>
|
<Version>1.0.0.82</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Remove="Build\dockerfiles\**" />
|
<Compile Remove="Build\dockerfiles\**" />
|
||||||
|
|
|
@ -68,6 +68,8 @@ namespace BTCPayServer.HostedServices
|
||||||
CancellationTokenSource cts = new CancellationTokenSource(10000);
|
CancellationTokenSource cts = new CancellationTokenSource(10000);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(invoice.NotificationURL))
|
||||||
|
return;
|
||||||
_EventAggregator.Publish<InvoiceIPNEvent>(new InvoiceIPNEvent(invoice.Id));
|
_EventAggregator.Publish<InvoiceIPNEvent>(new InvoiceIPNEvent(invoice.Id));
|
||||||
await SendNotification(invoice, cts.Token);
|
await SendNotification(invoice, cts.Token);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue