fix: correct filter data
This commit is contained in:
@ -103,7 +103,9 @@ public class ScheduleController(ILogger<ScheduleController> logger, IOptionsSnap
|
||||
/// <returns>Cron update skip dates.</returns>
|
||||
[HttpGet("CronUpdateSkip")]
|
||||
public ActionResult<List<CronUpdateSkip>> CronUpdateSkip() =>
|
||||
config.Value.ScheduleSettings!.CronUpdateSkipDateList.Filter(DateTime.Now).ConvertToDto();
|
||||
config.Value.ScheduleSettings!.CronUpdateSkipDateList
|
||||
.Filter()
|
||||
.ConvertToDto();
|
||||
|
||||
/// <summary>
|
||||
/// Updates the list of cron update skip dates in the configuration.
|
||||
@ -124,7 +126,7 @@ public class ScheduleController(ILogger<ScheduleController> logger, IOptionsSnap
|
||||
throw new ControllerArgumentException(ex.Message);
|
||||
}
|
||||
|
||||
config.Value.ScheduleSettings!.CronUpdateSkipDateList = result.Filter(DateTime.Now);
|
||||
config.Value.ScheduleSettings!.CronUpdateSkipDateList = result.Filter();
|
||||
config.Value.SaveSetting();
|
||||
|
||||
return Ok();
|
||||
|
Reference in New Issue
Block a user