mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-11 20:42:27 +00:00
Fix friend scores and typo in log
This commit is contained in:
parent
22905d419c
commit
cf5369d372
2 changed files with 3 additions and 3 deletions
|
@ -206,7 +206,7 @@ public class ScoreController : ControllerBase
|
||||||
// This is hella ugly but it technically assigns the proper rank to a score
|
// This is hella ugly but it technically assigns the proper rank to a score
|
||||||
// var needed for Anonymous type returned from SELECT
|
// var needed for Anonymous type returned from SELECT
|
||||||
var rankedScores = this.database.Scores
|
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)
|
.Where(s => s.SlotId == slotId && s.Type == type)
|
||||||
.OrderByDescending(s => s.Points)
|
.OrderByDescending(s => s.Points)
|
||||||
.ThenBy(s => s.ScoreId)
|
.ThenBy(s => s.ScoreId)
|
||||||
|
|
|
@ -26,7 +26,7 @@ public class PerformCaseActionsTask : IRepeatingTask
|
||||||
user = await @case.GetUserAsync(database);
|
user = await @case.GetUserAsync(database);
|
||||||
if (user == null)
|
if (user == null)
|
||||||
{
|
{
|
||||||
Logger.Error($"Target user for case {@case.CaseId} is null (userId={@case.AffectedId}", LogArea.Maintenance);
|
Logger.Error($"Target user for case {@case.CaseId} is null (userId={@case.AffectedId})", LogArea.Maintenance);
|
||||||
@case.Processed = true;
|
@case.Processed = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ public class PerformCaseActionsTask : IRepeatingTask
|
||||||
slot = await @case.GetSlotAsync(database);
|
slot = await @case.GetSlotAsync(database);
|
||||||
if (slot == null)
|
if (slot == null)
|
||||||
{
|
{
|
||||||
Logger.Error($"Target slot for case {@case.CaseId} is null (slotId={@case.AffectedId}", LogArea.Maintenance);
|
Logger.Error($"Target slot for case {@case.CaseId} is null (slotId={@case.AffectedId})", LogArea.Maintenance);
|
||||||
// Just mark as processed, this needs to be handled better in the future
|
// Just mark as processed, this needs to be handled better in the future
|
||||||
@case.Processed = true;
|
@case.Processed = true;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue