Skip to content

Commit

Permalink
Merge pull request #214 from peppy/order-by-score-id
Browse files Browse the repository at this point in the history
Order by `score_id` instead of `queue_id`
  • Loading branch information
bdach authored Feb 1, 2024
2 parents dab042e + 7ca7a66 commit f27ecf6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public async Task<int> OnExecuteAsync(CancellationToken cancellationToken)
}))
// there might be multiple queue entries for the same insert. this can cause issues due to how we do the mapping lookup so let's fix that.
.DistinctBy(s => s.score_id)
.OrderBy(s => s.queue_id)
.OrderBy(s => s.score_id)
.ToArray();

var pendingProcessing = highScores.FirstOrDefault(s => s.status == 0);
Expand Down

0 comments on commit f27ecf6

Please sign in to comment.