Fix Crowdfund not counting all invoices when configured to

fixes #1698
This commit is contained in:
Kukks
2020-08-04 13:40:00 +02:00
parent 57fffc8ef0
commit 5a9793a952

View File

@@ -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;
}