Skip to content

Commit

Permalink
Check ModelState in Match.ReportSheet(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed Sep 28, 2024
1 parent 0967f5e commit 28f4eeb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions League/Controllers/Match.cs
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,8 @@ private async Task<EnterResultViewModel> GetEnterResultViewModel(MatchEntity mat
[HttpGet("[action]/{id:long}")]
public async Task<IActionResult> ReportSheet(long id, [FromServices] ReportSheetCache cache, CancellationToken cancellationToken)
{
if (!ModelState.IsValid) return BadRequest(ModelState);

MatchReportSheetRow? model = null;
cache.UsePuppeteer = false;

Expand Down

0 comments on commit 28f4eeb

Please sign in to comment.