Skip to content

Commit

Permalink
Merge pull request #89 from CodebreakerApp/87-sqlserver-update-models…
Browse files Browse the repository at this point in the history
…-package

bump models package
  • Loading branch information
christiannagel authored Oct 7, 2023
2 parents 333c99e + ceea4ae commit f348622
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CNinnovation.Codebreaker.BackendModels" Version="3.5.0-beta.14" />
<PackageReference Include="CNinnovation.Codebreaker.BackendModels" Version="3.5.0-beta.15" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0-rc.1.23419.6" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ public async Task<IEnumerable<Game>> GetGamesAsync(GamesQuery gamesQuery, Cancel
query = query.Where(g => g.PlayerName == gamesQuery.PlayerName);
if (gamesQuery.GameType != null)
query = query.Where(g => g.GameType == gamesQuery.GameType);
if (gamesQuery.IsFinished == false)
if (gamesQuery.RunningOnly)
query = query.Where(g => g.EndTime == null);

if (gamesQuery.IsFinished == true)
if (gamesQuery.Ended)
{
query = query.Where(g => g.EndTime != null)
.OrderBy(g => g.Duration);
Expand Down

0 comments on commit f348622

Please sign in to comment.