Skip to content

Commit

Permalink
Fix highest version calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Jan 5, 2021
1 parent 26fe4c6 commit 5aa8a61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public async Task<IActionResult> OnGet()

var highestVersion = AgentHub.ServiceConnections.Values.Max(x => Version.TryParse(x.AgentVersion, out var result) ? result : default);
OutdatedDevices = AgentHub.ServiceConnections.Values
.Where(x => x.AgentVersion != highestVersion.ToString())
.Where(x => Version.TryParse(x.AgentVersion, out var result) ? result != highestVersion : false)
.Select(x => x.ID);

Environment = HostEnv.EnvironmentName;
Expand Down

0 comments on commit 5aa8a61

Please sign in to comment.