|
|
@ -44,7 +44,7 @@ namespace Sonarr.Api.V3.RootFolders
|
|
|
|
|
|
|
|
|
|
|
|
private RootFolderResource GetRootFolder(int id)
|
|
|
|
private RootFolderResource GetRootFolder(int id)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var timeout = Request.GetBooleanQueryParameter("timeout", true);
|
|
|
|
var timeout = Context?.Request?.GetBooleanQueryParameter("timeout", true) ?? true;
|
|
|
|
|
|
|
|
|
|
|
|
return _rootFolderService.Get(id, timeout).ToResource();
|
|
|
|
return _rootFolderService.Get(id, timeout).ToResource();
|
|
|
|
}
|
|
|
|
}
|
|
|
|