From 32def478620b1531adac5a6c3e0d998abd67b8ac Mon Sep 17 00:00:00 2001 From: Sailor <109166122+Equivocateur@users.noreply.github.com> Date: Sat, 22 Jul 2023 20:27:29 +0300 Subject: [PATCH] Nullable reference "warning" (#18191) --- Content.Server/Database/ServerDbBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Database/ServerDbBase.cs b/Content.Server/Database/ServerDbBase.cs index 63d820614a..40bc6c45f4 100644 --- a/Content.Server/Database/ServerDbBase.cs +++ b/Content.Server/Database/ServerDbBase.cs @@ -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();