mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-20 21:54:58 -04:00
Fixed: Significantly improved api performance.
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
using System.Reflection;
|
||||
using NzbDrone.Api.REST;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using Omu.ValueInjecter;
|
||||
|
||||
namespace NzbDrone.Api.Config
|
||||
{
|
||||
@@ -27,13 +26,14 @@ namespace NzbDrone.Api.Config
|
||||
|
||||
private TResource GetConfig()
|
||||
{
|
||||
var resource = new TResource();
|
||||
resource.InjectFrom(_configService);
|
||||
var resource = ToResource(_configService);
|
||||
resource.Id = 1;
|
||||
|
||||
return resource;
|
||||
}
|
||||
|
||||
protected abstract TResource ToResource(IConfigService model);
|
||||
|
||||
private TResource GetConfig(int id)
|
||||
{
|
||||
return GetConfig();
|
||||
|
||||
Reference in New Issue
Block a user