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 =