Skip to content

Commit

Permalink
Fix bans sort being broken
Browse files Browse the repository at this point in the history
OOPS
  • Loading branch information
PJB3005 committed Mar 24, 2024
1 parent 6704f3d commit d102138
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SS14.Admin/Pages/Bans/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static async Task<ISortState> LoadSortBanTableData(
sortState.AddColumn("ip", p => p.Ban.Address);
sortState.AddColumn("uid", p => p.Ban.PlayerUserId);
sortState.AddColumn("time", p => p.Ban.BanTime, SortOrder.Descending);
sortState.AddColumn("round", p => p.Ban.RoundId, SortOrder.Descending);
sortState.AddColumn("round", p => p.Ban.RoundId);
// sortState.AddColumn("expire_time", p => p.ban.Unban == null ? p.ban.ExpirationTime : p.ban.Unban!.UnbanTime);
sortState.AddColumn("admin", p => p.Admin!.LastSeenUserName);
sortState.AddColumn("hits", p => p.HitCount);
Expand Down
2 changes: 1 addition & 1 deletion SS14.Admin/Pages/RoleBans/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static async Task<ISortState> LoadSortBanTableData(
sortState.AddColumn("ip", p => p.Ban.Address);
sortState.AddColumn("uid", p => p.Ban.PlayerUserId);
sortState.AddColumn("time", p => p.Ban.BanTime, SortOrder.Descending);
sortState.AddColumn("round", p => p.Ban.RoundId, SortOrder.Descending);
sortState.AddColumn("round", p => p.Ban.RoundId);
// sortState.AddColumn("expire_time", p => p.ban.Unban == null ? p.ban.ExpirationTime : p.ban.Unban!.UnbanTime);
sortState.AddColumn("admin", p => p.Admin!.LastSeenUserName);
sortState.AddColumn("role", p => p.Ban.RoleId);
Expand Down

0 comments on commit d102138

Please sign in to comment.