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:
@@ -1,4 +1,5 @@
|
||||
using NzbDrone.Core.Metadata;
|
||||
using System;
|
||||
using NzbDrone.Core.Metadata;
|
||||
|
||||
namespace NzbDrone.Api.Metadata
|
||||
{
|
||||
@@ -9,6 +10,20 @@ namespace NzbDrone.Api.Metadata
|
||||
{
|
||||
}
|
||||
|
||||
protected override void MapToResource(MetadataResource resource, MetadataDefinition definition)
|
||||
{
|
||||
base.MapToResource(resource, definition);
|
||||
|
||||
resource.Enable = definition.Enable;
|
||||
}
|
||||
|
||||
protected override void MapToModel(MetadataDefinition definition, MetadataResource resource)
|
||||
{
|
||||
base.MapToModel(definition, resource);
|
||||
|
||||
definition.Enable = resource.Enable;
|
||||
}
|
||||
|
||||
protected override void Validate(MetadataDefinition definition, bool includeWarnings)
|
||||
{
|
||||
if (!definition.Enable) return;
|
||||
|
||||
Reference in New Issue
Block a user