The invoices link of crowdfund show all invoices of the store if it is set to use all store's invoice

This commit is contained in:
nicolas.dorier
2019-02-19 11:45:04 +09:00
parent 3816b36131
commit 85d75a013a
2 changed files with 56 additions and 55 deletions

View File

@@ -82,6 +82,7 @@ namespace BTCPayServer.Controllers
ResetEvery = Enum.GetName(typeof(CrowdfundResetEvery), settings.ResetEvery),
UseAllStoreInvoices = settings.UseAllStoreInvoices,
AppId = appId,
SearchTerm = settings.UseAllStoreInvoices ? $"storeid:{app.StoreDataId}" : $"orderid:{AppsHelper.GetCrowdfundOrderId(appId)}",
DisplayPerksRanking = settings.DisplayPerksRanking,
SortPerksByPopularity = settings.SortPerksByPopularity
};