diff --git a/Disco.Services/Devices/ManagedGroups/DeviceBatchDevicesManagedGroup.cs b/Disco.Services/Devices/ManagedGroups/DeviceBatchDevicesManagedGroup.cs index 7a76662f..3d2f0c6a 100644 --- a/Disco.Services/Devices/ManagedGroups/DeviceBatchDevicesManagedGroup.cs +++ b/Disco.Services/Devices/ManagedGroups/DeviceBatchDevicesManagedGroup.cs @@ -36,7 +36,7 @@ namespace Disco.Services.Devices.ManagedGroups (e.EventType == RepositoryMonitorEventType.Added && ActiveDirectory.IsValidDomainAccountId(((Device)e.Entity).DeviceDomainId)) || (e.EventType == RepositoryMonitorEventType.Modified && - (e.ModifiedProperties.Contains("DeviceBatchId") || e.ModifiedProperties.Contains("DeviceDomainId"))) || + (e.ModifiedProperties.Contains("DeviceBatchId") || e.ModifiedProperties.Contains("DeviceDomainId") || e.ModifiedProperties.Contains("LastEnrolDate"))) || (e.EventType == RepositoryMonitorEventType.Deleted) ) )); diff --git a/Disco.Services/Devices/ManagedGroups/DeviceProfileDevicesManagedGroup.cs b/Disco.Services/Devices/ManagedGroups/DeviceProfileDevicesManagedGroup.cs index 8bfc53bd..acb01180 100644 --- a/Disco.Services/Devices/ManagedGroups/DeviceProfileDevicesManagedGroup.cs +++ b/Disco.Services/Devices/ManagedGroups/DeviceProfileDevicesManagedGroup.cs @@ -37,7 +37,7 @@ namespace Disco.Services.Devices.ManagedGroups (e.EventType == RepositoryMonitorEventType.Added && ActiveDirectory.IsValidDomainAccountId(((Device)e.Entity).DeviceDomainId)) || (e.EventType == RepositoryMonitorEventType.Modified && - (e.ModifiedProperties.Contains("DeviceProfileId") || e.ModifiedProperties.Contains("DeviceDomainId"))) || + (e.ModifiedProperties.Contains("DeviceProfileId") || e.ModifiedProperties.Contains("DeviceDomainId") || e.ModifiedProperties.Contains("LastEnrolDate"))) || (e.EventType == RepositoryMonitorEventType.Deleted) ) ));