Skip to content

Commit f6639f5

Browse files
committed
fix: sync tasks
1 parent 0bc8194 commit f6639f5

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Modules/CippExtensions/Public/Extension Functions/Register-CippExtensionScheduledTasks.ps1

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function Register-CIPPExtensionScheduledTasks {
1414
$PushTasks = Get-CIPPAzDataTableEntity @ScheduledTasksTable -Filter 'Hidden eq true' | Where-Object { $_.Command -match 'Push-CippExtensionData' }
1515
$Tenants = Get-Tenants -IncludeErrors
1616

17-
$Extensions = @('Hudu')
17+
$Extensions = @('Hudu', 'NinjaOne')
1818
$MappedTenants = [System.Collections.Generic.List[string]]::new()
1919
foreach ($Extension in $Extensions) {
2020
$ExtensionConfig = $Config.$Extension
@@ -30,14 +30,9 @@ function Register-CIPPExtensionScheduledTasks {
3030

3131
$SyncTypes.Add('Overview')
3232
$SyncTypes.Add('Groups')
33-
34-
if ($FieldSync.Users) {
35-
$SyncTypes.Add('Users')
36-
$SyncTypes.Add('Mailboxes')
37-
}
38-
if ($FieldSync.Devices) {
39-
$SyncTypes.Add('Devices')
40-
}
33+
$SyncTypes.Add('Users')
34+
$SyncTypes.Add('Mailboxes')
35+
$SyncTypes.Add('Devices')
4136

4237
foreach ($Mapping in $Mappings) {
4338
$Tenant = $Tenants | Where-Object { $_.customerId -eq $Mapping.RowKey }

0 commit comments

Comments
 (0)