Nullable reference "warning" (#18191)

This commit is contained in:
Sailor
2023-07-22 20:27:29 +03:00
committed by GitHub
parent 53e1a638ff
commit 32def47862

View File

@@ -1347,7 +1347,7 @@ INSERT INTO player_round (players_id, rounds_id) VALUES ({players[player]}, {id}
// Client side query, as EF can't do groups yet
var bansEnumerable = bansQuery
.GroupBy(ban => new { ban.BanTime, ban.CreatedBy, ban.Reason, Unbanned = ban.Unban == null })
.GroupBy(ban => new { ban.BanTime, CreatedBy = (Player?)ban.CreatedBy, ban.Reason, Unbanned = ban.Unban == null })
.Select(banGroup => banGroup)
.ToArray();