diff --git a/code/Executable/Controllers/JobsController.cs b/code/Executable/Controllers/JobsController.cs index bbc9c3a4..6b451ccf 100644 --- a/code/Executable/Controllers/JobsController.cs +++ b/code/Executable/Controllers/JobsController.cs @@ -60,7 +60,7 @@ public class JobsController : ControllerBase try { // Get the schedule from the request body if provided - JobSchedule jobSchedule = scheduleRequest?.Schedule; + JobSchedule jobSchedule = scheduleRequest.Schedule; var result = await _jobManagementService.StartJob(jobType, jobSchedule); diff --git a/code/Executable/DependencyInjection/ServicesDI.cs b/code/Executable/DependencyInjection/ServicesDI.cs index 7f990565..7c09c2ed 100644 --- a/code/Executable/DependencyInjection/ServicesDI.cs +++ b/code/Executable/DependencyInjection/ServicesDI.cs @@ -1,5 +1,6 @@ using Infrastructure.Interceptors; using Infrastructure.Services; +using Infrastructure.Services.Interfaces; using Infrastructure.Verticals.Arr; using Infrastructure.Verticals.ContentBlocker; using Infrastructure.Verticals.DownloadCleaner; diff --git a/code/Infrastructure/Models/JobSchedule.cs b/code/Infrastructure/Models/JobSchedule.cs index 3a6e9b46..dfd2cef1 100644 --- a/code/Infrastructure/Models/JobSchedule.cs +++ b/code/Infrastructure/Models/JobSchedule.cs @@ -1,3 +1,5 @@ +using Infrastructure.Utilities; + namespace Infrastructure.Models; ///