Fix variable naming and one grammar error

Changed from nextAudit to next_audit.
This commit is contained in:
RussellLeVasseur 2022-01-27 09:49:22 -05:00 committed by Petri Asikainen
parent 51cb9f88f5
commit f26db93a16

View file

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