workaround tight coupling of crowdfund to apps mechanics

This commit is contained in:
Kukks
2019-04-08 16:02:53 +02:00
parent df824c36d2
commit 0224815a60

View File

@@ -53,8 +53,12 @@ namespace BTCPayServer.Services.Apps
public async Task<object> GetAppInfo(string appId) public async Task<object> GetAppInfo(string appId)
{ {
var app = await GetApp(appId, AppType.Crowdfund, true); var app = await GetApp(appId, AppType.Crowdfund, true);
if (app != null)
{
return await GetInfo(app); return await GetInfo(app);
} }
return null;
}
private async Task<ViewCrowdfundViewModel> GetInfo(AppData appData, string statusMessage = null) private async Task<ViewCrowdfundViewModel> GetInfo(AppData appData, string statusMessage = null)
{ {
var settings = appData.GetSettings<CrowdfundSettings>(); var settings = appData.GetSettings<CrowdfundSettings>();