From 5a9793a952f568b8e383ddc48e4df87edddbf46b Mon Sep 17 00:00:00 2001 From: Kukks Date: Tue, 4 Aug 2020 13:40:00 +0200 Subject: [PATCH] Fix Crowdfund not counting all invoices when configured to fixes #1698 --- BTCPayServer/Services/Apps/AppService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Services/Apps/AppService.cs b/BTCPayServer/Services/Apps/AppService.cs index 87c4fe239..264cf7d7c 100644 --- a/BTCPayServer/Services/Apps/AppService.cs +++ b/BTCPayServer/Services/Apps/AppService.cs @@ -182,7 +182,7 @@ namespace BTCPayServer.Services.Apps }); // Old invoices may have invoices which were not tagged - invoices = invoices.Where(inv => inv.Version < InvoiceEntity.InternalTagSupport_Version || + invoices = invoices.Where(inv => appData.TagAllInvoices || inv.Version < InvoiceEntity.InternalTagSupport_Version || inv.InternalTags.Contains(GetAppInternalTag(appData.Id))).ToArray(); return invoices; }