From 2375a193e62556ec464ac8bc61a2b4707bd56505 Mon Sep 17 00:00:00 2001 From: Richard Date: Tue, 7 Jul 2026 12:32:08 +0200 Subject: [PATCH] Fix EF Core missing OrderBy warning --- src/Predictalytics.Worker/Services/TradeReconciliationWorker.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Predictalytics.Worker/Services/TradeReconciliationWorker.cs b/src/Predictalytics.Worker/Services/TradeReconciliationWorker.cs index fbf5315..e79d97f 100644 --- a/src/Predictalytics.Worker/Services/TradeReconciliationWorker.cs +++ b/src/Predictalytics.Worker/Services/TradeReconciliationWorker.cs @@ -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);