Skip to content

Commit 2364125

Browse files
committed
1.14.1 - New-HaloWorkday bugfix.
1 parent be772db commit 2364125

File tree

3 files changed

+29
-25
lines changed

3 files changed

+29
-25
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2023-04-04 - Version 1.14.1
4+
5+
* Fix bug in `New-HaloWorkDay`.
6+
37
## 2023-03-10 - Version 1.14.0
48

59
* Add Custom Table endpoints `Get-HaloCustomTable`, `New-HaloCustomTable`, `Remove-HaloCustomTable`.

HaloAPI.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = '.\HaloAPI.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.14.0'
15+
ModuleVersion = '1.14.1'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()

Public/New/New-HaloWorkday.ps1

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
Function New-HaloWorkday {
2-
<#
3-
.SYNOPSIS
4-
Creates an Workday via the Halo API.
5-
.DESCRIPTION
6-
Function to send an Workday creation request to the Halo API
7-
.OUTPUTS
8-
Outputs an object containing the response from the web request.
9-
#>
10-
[CmdletBinding( SupportsShouldProcess = $True )]
11-
[OutputType([Object])]
12-
Param (
13-
# Object containing properties and values used to create a new item.
14-
[Parameter( Mandatory = $True )]
15-
[Object]$Workday
16-
)
17-
Invoke-HaloPreFlightCheck
18-
try {
19-
if ($PSCmdlet.ShouldProcess("Workday '$($Workday.name)'", 'Create')) {
20-
New-HaloPOSTRequest -Object $Item -Endpoint 'workday'
21-
}
22-
} catch {
23-
New-HaloError -ErrorRecord $_
24-
}
1+
Function New-HaloWorkday {
2+
<#
3+
.SYNOPSIS
4+
Creates an Workday via the Halo API.
5+
.DESCRIPTION
6+
Function to send an Workday creation request to the Halo API
7+
.OUTPUTS
8+
Outputs an object containing the response from the web request.
9+
#>
10+
[CmdletBinding( SupportsShouldProcess = $True )]
11+
[OutputType([Object])]
12+
Param (
13+
# Object containing properties and values used to create a new item.
14+
[Parameter( Mandatory = $True )]
15+
[Object]$Workday
16+
)
17+
Invoke-HaloPreFlightCheck
18+
try {
19+
if ($PSCmdlet.ShouldProcess("Workday '$($Workday.name)'", 'Create')) {
20+
New-HaloPOSTRequest -Object $Workday -Endpoint 'workday'
21+
}
22+
} catch {
23+
New-HaloError -ErrorRecord $_
24+
}
2525
}

0 commit comments

Comments
 (0)