mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
added tests for basic config set/get to db
This commit is contained in:
@@ -21,7 +21,7 @@ namespace NzbDrone.Web.Controllers
|
||||
|
||||
public ActionResult Index()
|
||||
{
|
||||
return View(new SettingsModel() { RootPath = _configController.SeriesRoot });
|
||||
return View(new SettingsModel() { TvFolder = _configController.SeriesRoot });
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
@@ -29,7 +29,7 @@ namespace NzbDrone.Web.Controllers
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
_configController.SeriesRoot = model.RootPath;
|
||||
_configController.SeriesRoot = model.TvFolder;
|
||||
}
|
||||
|
||||
return RedirectToAction("index");
|
||||
|
Reference in New Issue
Block a user