Skip to content

Commit

Permalink
temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
teraa committed Aug 6, 2024
1 parent 7b07116 commit 05fc4d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BattleTrace/Features/Players/Actions/Index.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace BattleTrace.Features.Players.Actions;
public static class Index
{
public record Query(
[ModelBinder(Name = "id")] string?[] Ids,
[ModelBinder(Name = "id")] string?[] Id,
string? NamePattern,
string? TagPattern,
[ModelBinder(Name = "active")] bool ActiveOnly = false,
Expand Down Expand Up @@ -58,8 +58,8 @@ public async Task<IResult> Handle(Query request, CancellationToken cancellationT
{
var query = _ctx.Players.AsQueryable();

if (request.Ids is {Length: > 0})
query = query.Where(x => request.Ids.Contains(x.Id));
if (request.Id is {Length: > 0})
query = query.Where(x => request.Id.Contains(x.Id));

if (request.NamePattern is {Length: > 0})
{
Expand Down

0 comments on commit 05fc4d4

Please sign in to comment.