feat: clear old records
This commit is contained in:
@ -102,10 +102,18 @@ public class ScheduleController(ILogger<ScheduleController> logger, IOptionsSnap
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>Cron update skip dates.</returns>
|
/// <returns>Cron update skip dates.</returns>
|
||||||
[HttpGet("CronUpdateSkip")]
|
[HttpGet("CronUpdateSkip")]
|
||||||
public ActionResult<List<CronUpdateSkip>> CronUpdateSkip() =>
|
public ActionResult<List<CronUpdateSkip>> CronUpdateSkip()
|
||||||
config.Value.ScheduleSettings!.CronUpdateSkipDateList
|
{
|
||||||
.Filter()
|
var generalConfig = config.Value;
|
||||||
|
|
||||||
|
generalConfig.ScheduleSettings!.CronUpdateSkipDateList =
|
||||||
|
generalConfig.ScheduleSettings.CronUpdateSkipDateList.Filter();
|
||||||
|
generalConfig.SaveSetting();
|
||||||
|
|
||||||
|
return generalConfig.ScheduleSettings!.CronUpdateSkipDateList
|
||||||
.ConvertToDto();
|
.ConvertToDto();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Updates the list of cron update skip dates in the configuration.
|
/// Updates the list of cron update skip dates in the configuration.
|
||||||
|
Reference in New Issue
Block a user