fix: return correct value
This commit is contained in:
@ -53,12 +53,12 @@ public class ScheduleController(ILogger<ScheduleController> logger, IOptionsSnap
|
|||||||
throw new ControllerArgumentException("Incorrect cron value.");
|
throw new ControllerArgumentException("Incorrect cron value.");
|
||||||
|
|
||||||
if (config.Value.ScheduleSettings!.CronUpdateSchedule == cron)
|
if (config.Value.ScheduleSettings!.CronUpdateSchedule == cron)
|
||||||
return Ok(CronUpdateSchedule());
|
return CronUpdateSchedule();
|
||||||
|
|
||||||
config.Value.ScheduleSettings!.CronUpdateSchedule = cron;
|
config.Value.ScheduleSettings!.CronUpdateSchedule = cron;
|
||||||
config.Value.SaveSetting();
|
config.Value.SaveSetting();
|
||||||
|
|
||||||
return Ok(CronUpdateSchedule());
|
return CronUpdateSchedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Reference in New Issue
Block a user