From c725cfed32fced8fac374698d17af27d50e751ba Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sun, 2 Feb 2025 04:50:35 +0300 Subject: [PATCH] refactor: increase max value --- Endpoint/Controllers/V1/Configuration/ScheduleController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Endpoint/Controllers/V1/Configuration/ScheduleController.cs b/Endpoint/Controllers/V1/Configuration/ScheduleController.cs index 6194520..6b548d3 100644 --- a/Endpoint/Controllers/V1/Configuration/ScheduleController.cs +++ b/Endpoint/Controllers/V1/Configuration/ScheduleController.cs @@ -27,7 +27,7 @@ public class ScheduleController(ILogger logger, IOptionsSnap /// The depth of the next tasks to retrieve. /// Cron expression and the list of next scheduled task dates. [HttpGet("CronUpdateSchedule")] - public ActionResult CronUpdateSchedule([FromQuery][Range(0, 5)] int depth = 2) + public ActionResult CronUpdateSchedule([FromQuery][Range(0, 10)] int depth = 5) { var cronExpression = CronExpression.Parse(config.Value.ScheduleSettings!.CronUpdateSchedule); var nextTasks = config.Value.ScheduleSettings!.CronUpdateSkipDateList.GetNextTask(cronExpression, depth);