Merge pull request #1801 from btcpayserver/fixcfinvoice

Fix Crowdfund not counting all invoices when configured to
This commit is contained in:
Nicolas Dorier
2020-08-04 21:49:58 +09:00
committed by GitHub

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