From 7efe83eba8732f954bb21dfb0a2fa042abbe5bcb Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Sun, 3 Dec 2017 13:42:12 +0900 Subject: [PATCH] notify on invalid in fullnotification is true --- BTCPayServer/BTCPayServer.csproj | 2 +- BTCPayServer/Services/Invoices/InvoiceWatcher.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index 8375a51ff..632e6e29f 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -2,7 +2,7 @@ Exe netcoreapp2.0 - 1.0.0.32 + 1.0.0.33 diff --git a/BTCPayServer/Services/Invoices/InvoiceWatcher.cs b/BTCPayServer/Services/Invoices/InvoiceWatcher.cs index f716f0581..aadd66a2c 100644 --- a/BTCPayServer/Services/Invoices/InvoiceWatcher.cs +++ b/BTCPayServer/Services/Invoices/InvoiceWatcher.cs @@ -133,6 +133,10 @@ namespace BTCPayServer.Services.Invoices needSave = true; await _InvoiceRepository.UnaffectAddress(invoice.Id); invoice.Status = "expired"; + if (invoice.FullNotifications) + { + _NotificationManager.Notify(invoice); + } } if (invoice.Status == "new" || invoice.Status == "expired")