mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-21 22:25:03 -04:00
Fixed: Validation inheritance
This commit is contained in:
@@ -1168,7 +1168,7 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||
|
||||
public class NzbIndexSettings : IIndexerSettings
|
||||
{
|
||||
private static readonly NzbIndexSettingsValidator Validator = new NzbIndexSettingsValidator();
|
||||
private static readonly NzbIndexSettingsValidator Validator = new ();
|
||||
|
||||
public NzbIndexSettings()
|
||||
{
|
||||
@@ -1182,7 +1182,9 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||
public string ApiKey { get; set; }
|
||||
|
||||
[FieldDefinition(3)]
|
||||
public IndexerBaseSettings BaseSettings { get; set; } = new IndexerBaseSettings(); public NzbDroneValidationResult Validate()
|
||||
public IndexerBaseSettings BaseSettings { get; set; } = new ();
|
||||
|
||||
public NzbDroneValidationResult Validate()
|
||||
{
|
||||
return new NzbDroneValidationResult(Validator.Validate(this));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user