Fix worker pagination, apply Analytics fixes, add analyze backlog endpoint

This commit is contained in:
Richard
2026-07-08 20:13:52 +02:00
parent 882226c6c6
commit a4acd23a60
8 changed files with 65 additions and 18 deletions
@@ -12,7 +12,13 @@ public class TraderRepository : ITraderRepository
public TraderRepository(AppDbContext db) => _db = db;
public async Task<Trader?> GetByIdAsync(int id, CancellationToken ct = default)
=> await _db.Traders.Include(t => t.CurrentScore).Include(t => t.CategoryPerformances).FirstOrDefaultAsync(t => t.Id == id, ct);
{
return await _db.Traders
.Include(t => t.CurrentScore)
.Include(t => t.Analytics)
.Include(t => t.CategoryPerformances)
.FirstOrDefaultAsync(t => t.Id == id, ct);
}
public async Task<Trader?> GetByPlatformIdAsync(PlatformType platform, string platformUserId, CancellationToken ct = default)
=> await _db.Traders.Include(t => t.CurrentScore).Include(t => t.CategoryPerformances)