Skip to content

Commit

Permalink
Now uses the maxCount parameter for querying report-games
Browse files Browse the repository at this point in the history
  • Loading branch information
szv committed Jun 27, 2023
1 parent 1a564a3 commit f65fc7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Backend/Data/Repositories/ReportRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public IAsyncEnumerable<Game> GetGamesAsync(GetGamesArgs args, CancellationToken
return dbContext.Games
.WhereNotActive()
.Where(game => game.Start >= args.From && game.Start < args.To)
.Take(args.MaxCount)
.AsAsyncEnumerable();
}

Expand Down
2 changes: 1 addition & 1 deletion src/Backend/Services/ReportService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class GetGamesArgs

public DateTime To { get; init; } = DateTime.Now;

public int MaxCount { get; init; } = 1000;
public int MaxCount { get; init; } = 100;
}

public class GetGameArgs
Expand Down

0 comments on commit f65fc7a

Please sign in to comment.