Skip to content

Commit

Permalink
Fix ban hits table being broken by previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Jun 21, 2024
1 parent db5a08b commit 5418e1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions SS14.Admin/Pages/Bans/Hits.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public async Task<IActionResult> OnGetAsync(

var logQuery = _dbContext.ServerBanHit
.Include(b => b.Connection)
.ThenInclude(c => c.Server)
.Where(bh => bh.BanId == banEntry.Ban.Id)
.Select(bh => bh.Connection);

Expand Down
3 changes: 1 addition & 2 deletions SS14.Admin/Pages/Connections/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public async Task OnGetAsync(
AllRouteData.Add("showPanic", showPanic.ToString());
AllRouteData.Add("showSet", "true");

IQueryable<ConnectionLog> logQuery = _dbContext.ConnectionLog;
IQueryable<ConnectionLog> logQuery = _dbContext.ConnectionLog.Include(c => c.Server);
logQuery = SearchHelper.SearchConnectionLog(logQuery, search, User);

var acceptableDenies = new List<ConnectionDenyReason?>();
Expand Down Expand Up @@ -101,7 +101,6 @@ public static async Task<ISortState> LoadSortConnectionsTableData(
Dictionary<string, string?> allRouteData)
{
var logs = query
.Include(c => c.Server)
.LeftJoin(
dbContext.Player,
c => c.UserId, p => p.UserId,
Expand Down

0 comments on commit 5418e1a

Please sign in to comment.