Fix friend scores and typo in log

This commit is contained in:
Slendy 2022-09-03 11:01:35 -05:00
parent 22905d419c
commit cf5369d372
No known key found for this signature in database
GPG key ID: 7288D68361B91428
2 changed files with 3 additions and 3 deletions

View file

@ -206,7 +206,7 @@ public class ScoreController : ControllerBase
// This is hella ugly but it technically assigns the proper rank to a score
// var needed for Anonymous type returned from SELECT
var rankedScores = this.database.Scores
.Where(s => playerIds == null || playerIds.Any(id => s.PlayerIdCollection.Split(",", StringSplitOptions.None).Contains(id)))
.Where(s => playerIds == null || playerIds.Contains(s.MainPlayer))
.Where(s => s.SlotId == slotId && s.Type == type)
.OrderByDescending(s => s.Points)
.ThenBy(s => s.ScoreId)