From 93912caf0122042b3ca6f37f8da70af8f65b0001 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sun, 2 Feb 2025 04:50:54 +0300 Subject: [PATCH] fix: return correct value --- Endpoint/Controllers/V1/Configuration/ScheduleController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Endpoint/Controllers/V1/Configuration/ScheduleController.cs b/Endpoint/Controllers/V1/Configuration/ScheduleController.cs index 6b548d3..30397e1 100644 --- a/Endpoint/Controllers/V1/Configuration/ScheduleController.cs +++ b/Endpoint/Controllers/V1/Configuration/ScheduleController.cs @@ -53,12 +53,12 @@ public class ScheduleController(ILogger logger, IOptionsSnap throw new ControllerArgumentException("Incorrect cron value."); if (config.Value.ScheduleSettings!.CronUpdateSchedule == cron) - return Ok(CronUpdateSchedule()); + return CronUpdateSchedule(); config.Value.ScheduleSettings!.CronUpdateSchedule = cron; config.Value.SaveSetting(); - return Ok(CronUpdateSchedule()); + return CronUpdateSchedule(); } ///