From 9409346732d60771065c59072b67af40c478106a Mon Sep 17 00:00:00 2001 From: Flaminel Date: Mon, 19 May 2025 12:38:30 +0300 Subject: [PATCH] fix #20 --- code/Executable/Controllers/JobsController.cs | 2 +- code/Executable/DependencyInjection/ServicesDI.cs | 1 + code/Infrastructure/Models/JobSchedule.cs | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) 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; ///