Skip to content

Commit

Permalink
Fix Set-NinjaOneDeviceMaintenance, update ChangeLog and PSD for versi…
Browse files Browse the repository at this point in the history
…on 2.0.3
  • Loading branch information
homotechsual committed Sep 27, 2024
1 parent 63fecb7 commit 7d4afd5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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-27 - Version 2.0.3

* Fix broken `Set-NinjaOneDeviceMaintenance` commandlet where the API resource path was not set.

## 2024-09-03 - Version 2.0.2

* Fix incorrect parameter type for `-organisationDocument` and `-organisationDocuments` parameters on the `New-NinjaOneOrganisationDocument` and `New-NinjaOneOrganisationDocuments` commandlets.
Expand Down
4 changes: 2 additions & 2 deletions 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.2'
ModuleVersion = '2.0.3'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -255,7 +255,7 @@
IconUri = 'https://pbs.twimg.com/profile_images/1452496768030187521/kIGQii5Y_400x400.jpg'

# ReleaseNotes of this module
ReleaseNotes = 'https://github.com/homotechsual/NinjaOne/releases/tag/2.0.0'
ReleaseNotes = 'https://github.com/homotechsual/NinjaOne/releases/tag/2.0.3'

# Prerelease string of this module
Prerelease = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function Set-NinjaOneDeviceMaintenance {
process {
try {
Write-Verbose ('Setting maintenance window for device {0}.' -f $deviceId)
$Resource = ('v2/device/{0}/maintenance' -f $deviceId)
if ($start) {
[Int]$start = ConvertTo-UnixEpoch -DateTime $start
} elseif ($unixStart) {
Expand Down

0 comments on commit 7d4afd5

Please sign in to comment.