Skip to content

Commit

Permalink
[B] Fix season results query failing
Browse files Browse the repository at this point in the history
  • Loading branch information
SSchulze1989 committed Jan 13, 2025
1 parent f2af5b6 commit 2b9b96a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/iRLeagueApiCore.Client/iRLeagueApiCore.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<OutputType>Library</OutputType>
<TargetFrameworks>net8.0</TargetFrameworks>
<PackageId>iRLeagueApiCore.Client</PackageId>
<Version>0.14.5</Version>
<Version>0.14.6</Version>
<Authors>Simon Schulze</Authors>
<Company>Simon Schulze</Company>
<PackageDescription>This package contains shared objects for all members of the iRLeagueDatabase-iRLeagueApi stack</PackageDescription>
Expand Down
2 changes: 1 addition & 1 deletion src/iRLeagueApiCore.Common/iRLeagueApiCore.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<OutputType>Library</OutputType>
<TargetFramework>net8.0</TargetFramework>
<PackageId>iRLeagueApiCore.Common</PackageId>
<Version>0.14.5</Version>
<Version>0.14.6</Version>
<Authors>Simon Schulze</Authors>
<Company>Simon Schulze</Company>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ public override async Task<IEnumerable<SeasonEventResultModel>> Handle(GetResult

private async Task<IEnumerable<SeasonEventResultModel>> MapToGetResultModelsFromSeasonAsync(long seasonId, CancellationToken cancellationToken)
{
var seasonResults = await dbContext.ScoredEventResults
var seasonResults = (await dbContext.ScoredEventResults
.Where(x => x.Event.Schedule.SeasonId == seasonId)
.OrderBy(x => x.ResultConfigId)
.Select(MapToEventResultModelExpression)
.OrderBy(x => x.Index)
.ToListAsync(cancellationToken))
.OrderBy(x => x.Date)
.ToListAsync(cancellationToken);
.ToList();

var groupedResults = seasonResults.GroupBy(x => x.EventId);
var seasonEventResults = groupedResults.Select(x => new SeasonEventResultModel()
Expand Down
2 changes: 1 addition & 1 deletion src/iRLeagueApiCore.Server/iRLeagueApiCore.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Version>0.14.5</Version>
<Version>0.14.6</Version>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/iRLeagueDatabaseCore/iRLeagueDatabaseCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<TargetFramework>net8.0</TargetFramework>
<LangVersion>12</LangVersion>
<PackageId>iRLeagueDatabaseCore</PackageId>
<Version>0.14.5</Version>
<Version>0.14.6</Version>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

Expand Down

0 comments on commit 2b9b96a

Please sign in to comment.