From e87c7dd35c81bc631a92e1f988e4a01f39133802 Mon Sep 17 00:00:00 2001 From: Beyley Thomas Date: Sat, 27 Jul 2024 06:37:42 -0700 Subject: [PATCH] CoolLevelsWorker: Fix bug causing only first 2000 levels to receive a CR --- Refresh.GameServer/Workers/CoolLevelsWorker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Refresh.GameServer/Workers/CoolLevelsWorker.cs b/Refresh.GameServer/Workers/CoolLevelsWorker.cs index be6e75ad..58213872 100644 --- a/Refresh.GameServer/Workers/CoolLevelsWorker.cs +++ b/Refresh.GameServer/Workers/CoolLevelsWorker.cs @@ -67,7 +67,7 @@ public void DoWork(DataContext context) context.Database.SetLevelScores(scoresToSet); // Load the next page - levels = context.Database.GetUserLevelsChunk(levels.Items.Count(), pageSize); + levels = context.Database.GetUserLevelsChunk(levels.NextPageIndex - 1, pageSize); } stopwatch.Stop();