diff --git a/NinjaOne.psd1 b/NinjaOne.psd1 index bc061f9..fb0c1c3 100644 --- a/NinjaOne.psd1 +++ b/NinjaOne.psd1 @@ -12,7 +12,7 @@ RootModule = '.\NinjaOne.psm1' # Version number of this module. - ModuleVersion = '1.6.2' + ModuleVersion = '1.6.3' # Supported PSEditions # CompatiblePSEditions = @() @@ -246,7 +246,7 @@ IconUri = 'https://pbs.twimg.com/profile_images/1452496768030187521/kIGQii5Y_400x400.jpg' # ReleaseNotes of this module - ReleaseNotes = 'Add new commandlet to get device policy overrides.' + ReleaseNotes = 'Fix an error in Update-NinjaOneOrganisation.' # Prerelease string of this module # Prerelease = '' diff --git a/Public/Update/Update-NinjaOneOrganisation.ps1 b/Public/Update/Update-NinjaOneOrganisation.ps1 index c9fb837..789ea07 100644 --- a/Public/Update/Update-NinjaOneOrganisation.ps1 +++ b/Public/Update/Update-NinjaOneOrganisation.ps1 @@ -27,7 +27,7 @@ function Update-NinjaOneOrganisation { Resource = $Resource Body = $deviceInformation } - $OrganisationExists = (Get-NinjaOneOrganisation -OrganisationId $organisationId).Count -gt 0 + $OrganisationExists = (Get-NinjaOneOrganisations -OrganisationId $organisationId).Count -gt 0 if ($OrganisationExists) { if ($PSCmdlet.ShouldProcess('Organisation information', 'Update')) { $OrganisationUpdate = New-NinjaOnePATCHRequest @RequestParams