From 0b2ae9d2714aa8c14d7db6e975a060baf838432b Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Sat, 9 May 2026 22:56:26 -0500 Subject: [PATCH] Add navigation properties --- KfChatDotNetBot/Commands/Kasino/KasinoStatisticsCommands.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/KfChatDotNetBot/Commands/Kasino/KasinoStatisticsCommands.cs b/KfChatDotNetBot/Commands/Kasino/KasinoStatisticsCommands.cs index 5ff8bb4..1a58249 100644 --- a/KfChatDotNetBot/Commands/Kasino/KasinoStatisticsCommands.cs +++ b/KfChatDotNetBot/Commands/Kasino/KasinoStatisticsCommands.cs @@ -25,7 +25,8 @@ public class GetBiggestWins : ICommand { await using var db = new ApplicationDbContext(); var gameDay = await Money.GetKasinoDate(); - var wagers = await db.Wagers.Where(x => x.TimeUnixEpochSeconds > gameDay.ToUnixTimeSeconds()).ToListAsync(ctx); + var wagers = await db.Wagers.Where(x => x.TimeUnixEpochSeconds > gameDay.ToUnixTimeSeconds()) + .Include(x => x.Gambler).ThenInclude(x => x.User).ToListAsync(ctx); var biggestMultees = wagers.OrderByDescending(x => x.Multiplier).Take(10).ToList(); var biggestWins = wagers.OrderByDescending(x => x.WagerEffect).Take(10).ToList(); var multeesMsg =