Fix api/rates allow to scope by cyrptoCode and storeId

This commit is contained in:
nicolas.dorier
2018-01-19 18:11:43 +09:00
parent 7b9541b8e9
commit 69247dee8a
5 changed files with 47 additions and 11 deletions

View File

@@ -278,6 +278,8 @@ namespace BTCPayServer.Controllers
{
return View(model);
}
if (model.PreferredExchange != null)
model.PreferredExchange = model.PreferredExchange.Trim().ToLowerInvariant();
var store = await _Repo.FindStore(storeId, GetUserId());
if (store == null)
return NotFound();