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,7 +53,11 @@ namespace BTCPayServer.Services.Apps
public async Task<object> GetAppInfo(string appId)
{
var app = await GetApp(appId, AppType.Crowdfund, true);
return await GetInfo(app);
if (app != null)
{
return await GetInfo(app);
}
return null;
}
private async Task<ViewCrowdfundViewModel> GetInfo(AppData appData, string statusMessage = null)
{