changed var to next_audit_date

This commit is contained in:
Russell LeVasseur 2022-02-04 09:39:58 -05:00 committed by Petri Asikainen
parent f26db93a16
commit b4c2b51024

View file

@ -8,7 +8,7 @@ Long description
.PARAMETER Tag .PARAMETER Tag
The asset tag of the asset you wish to audit The asset tag of the asset you wish to audit
.PARAMETER Next_audit .PARAMETER next_audit_date
Due date for the asset's next audit Due date for the asset's next audit
.PARAMETER Location_id .PARAMETER Location_id
@ -32,7 +32,7 @@ function New-SnipeitAudit() {
[int]$location_id, [int]$location_id,
[parameter(mandatory = $false)] [parameter(mandatory = $false)]
[datetime]$next_audit, [datetime]$next_audit_date,
[parameter(mandatory = $false)] [parameter(mandatory = $false)]
[string]$url, [string]$url,
@ -52,7 +52,7 @@ function New-SnipeitAudit() {
$Values += @{"asset_tag" = $tag} $Values += @{"asset_tag" = $tag}
} }
if ($PSBoundParameters.ContainsKey('next_audit')) { if ($PSBoundParameters.ContainsKey('next_audit_date')) {
$Values += @{"next_audit_date" = ($next_audit).ToString("yyyy-MM-dd")} $Values += @{"next_audit_date" = ($next_audit).ToString("yyyy-MM-dd")}
} }