revert: remove produced

This commit is contained in:
Polianin Nikita 2024-10-07 01:20:10 +03:00
parent 412751e30f
commit c5ecf00932

View File

@ -23,7 +23,6 @@ public class ScheduleController(IMediator mediator, IOptionsSnapshot<GeneralConf
{ {
[CacheMaxAge(1, 0)] [CacheMaxAge(1, 0)]
[HttpGet("StartTerm")] [HttpGet("StartTerm")]
[Produces("text/plain")]
public ActionResult<DateOnly> GetStartTerm() => config.Value.ScheduleSettings!.StartTerm; public ActionResult<DateOnly> GetStartTerm() => config.Value.ScheduleSettings!.StartTerm;
[CacheMaxAge(1, 0)] [CacheMaxAge(1, 0)]
@ -66,7 +65,8 @@ public class ScheduleController(IMediator mediator, IOptionsSnapshot<GeneralConf
ProfessorIds = request.Professors ProfessorIds = request.Professors
})).Schedules; })).Schedules;
if (result.Count == 0) NoContent(); if (result.Count == 0)
NoContent();
return Ok(result.Select(s => new ScheduleResponse return Ok(result.Select(s => new ScheduleResponse
{ {