mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
workaround tight coupling of crowdfund to apps mechanics
This commit is contained in:
@@ -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>();
|
||||||
|
|||||||
Reference in New Issue
Block a user