Skip to content

Commit

Permalink
CoolLevelsWorker: Fix bug causing only first 2000 levels to receive a CR
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Jul 27, 2024
1 parent c5875a2 commit e87c7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Refresh.GameServer/Workers/CoolLevelsWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e87c7dd

Please sign in to comment.