mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Fix highest version calculation.
This commit is contained in:
parent
dd5757046f
commit
c4e19082e1
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user