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