From f26db93a1655b901d971735954f2c8b31c736811 Mon Sep 17 00:00:00 2001 From: RussellLeVasseur <58618324+RussellLeVasseur@users.noreply.github.com> Date: Thu, 27 Jan 2022 09:49:22 -0500 Subject: [PATCH] Fix variable naming and one grammar error Changed from nextAudit to next_audit. --- SnipeitPS/Public/New-SnipeitAudit.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SnipeitPS/Public/New-SnipeitAudit.ps1 b/SnipeitPS/Public/New-SnipeitAudit.ps1 index cbe4117..809ab9c 100644 --- a/SnipeitPS/Public/New-SnipeitAudit.ps1 +++ b/SnipeitPS/Public/New-SnipeitAudit.ps1 @@ -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 = @{