@ -1,3 +1,4 @@
using Autofac ;
using CliFx.Attributes ;
using CliFx.Exceptions ;
using JetBrains.Annotations ;
@ -49,7 +50,6 @@ public class SonarrCommand : ServiceCommand
var log = container . Resolve < ILogger > ( ) ;
var customFormatUpdaterFactory = container . Resolve < Func < ICustomFormatUpdater > > ( ) ;
var guideService = container . Resolve < ISonarrGuideService > ( ) ;
var versionEnforcement = container . Resolve < ISonarrVersionEnforcement > ( ) ;
if ( ListReleaseProfiles )
{
@ -88,6 +88,9 @@ public class SonarrCommand : ServiceCommand
{
log . Information ( "Processing server {Url}" , FlurlLogging . SanitizeUrl ( config . BaseUrl ) ) ;
var scope = container . Container . BeginLifetimeScope ( ) ;
var versionEnforcement = scope . Resolve < ISonarrVersionEnforcement > ( ) ;
await versionEnforcement . DoVersionEnforcement ( config ) ;
if ( config . ReleaseProfiles . Count > 0 )