Skip to content

Commit

Permalink
Fix broken parameters on New-NinjaOneOrganisationDocument and New-Nin…
Browse files Browse the repository at this point in the history
…jaOneOrganisationDocuments.
  • Loading branch information
homotechsual committed Sep 3, 2024
1 parent e2e65e9 commit dc9a5ff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Please note that backwards compatibility breaks are prefixed with `{"BC"}` (short for Breaking Change).

## 2024-09-03 - Version 2.0.2

* Fix incorrect parameter type for `-organisationDocument` and `-organisationDocuments` parameters on the `New-NinjaOneOrganisationDocument` and `New-NinjaOneOrganisationDocuments` commandlets.

## 2024-08-16 - Version 2.0.1

* Remove debugging statements forcing `Write-Information` output to always display.
Expand Down
2 changes: 1 addition & 1 deletion Source/NinjaOne.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = '.\NinjaOne.psm1'

# Version number of this module.
ModuleVersion = '2.0.1'
ModuleVersion = '2.0.2'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function New-NinjaOneOrganisationDocument {
[String]$documentTemplateId,
# An object containing an array of organisation documents to create.
[Parameter(Mandatory, Position = 2, ValueFromPipeline, ValueFromPipelineByPropertyName)]
[Alias('organizationDocuments', 'body')]
[NinjaOneOrganisationDocument[]]$organisationDocuments,
[Alias('organizationDocuments', 'organisationDocuments', 'organizationDocument', 'body')]
[Object]$organisationDocument,
# Show the organisation document that was created.
[Switch]$show
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function New-NinjaOneOrganisationDocuments {
# An object containing an array of organisation documents to create.
[Parameter(Mandatory, Position = 0, ValueFromPipeline, ValueFromPipelineByPropertyName)]
[Alias('organizationDocuments', 'body')]
[NinjaOneOrganisationDocument[]]$organisationDocuments,
[Object[]]$organisationDocuments,
# Show the organisation documents that were created.
[Switch]$show
)
Expand Down

0 comments on commit dc9a5ff

Please sign in to comment.