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