Add navigation properties

This commit is contained in:
barelyprofessional
2026-05-09 22:56:26 -05:00
parent cd3e8f6147
commit 0b2ae9d271

View File

@@ -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 =