Fix highest version calculation.

This commit is contained in:
Jared 2021-01-04 19:28:44 -08:00 committed by Jared Goodwin
parent dd5757046f
commit c4e19082e1

View File

@ -74,7 +74,7 @@ namespace Remotely.Server.Areas.Identity.Pages.Account.Manage
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;