Fixing broken CrowdfundTests.CanContributeOnlyWhenAllowed test

This commit is contained in:
rockstardev
2019-11-14 20:56:28 -06:00
parent c6ef6fc17d
commit 9b3e7338ba
2 changed files with 8 additions and 8 deletions

View File

@@ -68,7 +68,7 @@ namespace BTCPayServer.Controllers
}
[HttpPost]
[Route("{appId}/settings/crowdfund")]
public async Task<IActionResult> UpdateCrowdfund(string appId, UpdateCrowdfundViewModel vm, string command = null)
public async Task<IActionResult> UpdateCrowdfund(string appId, UpdateCrowdfundViewModel vm, string command)
{
if (!string.IsNullOrEmpty( vm.TargetCurrency) && _currencies.GetCurrencyData(vm.TargetCurrency, false) == null)
ModelState.AddModelError(nameof(vm.TargetCurrency), "Invalid currency");