Fix EF Core missing OrderBy warning

This commit is contained in:
Richard
2026-07-07 12:32:08 +02:00
parent 5ca50836a9
commit 2375a193e6
@@ -73,6 +73,7 @@ public class TradeReconciliationWorker : BackgroundService
.Where(t => t.MarketOutcomeId == null && !string.IsNullOrEmpty(t.MarketId) && !db.Markets.Any(m => m.ConditionId == t.MarketId))
.Select(t => t.MarketId)
.Distinct()
.OrderBy(x => x)
.Take(50) // Limit to avoid rate limits
.ToListAsync(ct);