revert: remove produced
This commit is contained in:
parent
412751e30f
commit
c5ecf00932
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user