From db2fb6278c10ff692b96443ca7b49268636bbed3 Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Wed, 24 Nov 2021 15:07:36 +0200 Subject: [PATCH 1/2] fix #246 --- SnipeitPS/Public/Reset-SnipeitAssetOwner.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SnipeitPS/Public/Reset-SnipeitAssetOwner.ps1 b/SnipeitPS/Public/Reset-SnipeitAssetOwner.ps1 index 629306a..d1590f0 100644 --- a/SnipeitPS/Public/Reset-SnipeitAssetOwner.ps1 +++ b/SnipeitPS/Public/Reset-SnipeitAssetOwner.ps1 @@ -13,7 +13,7 @@ .PARAMETER location_id Location id to change asset location to - .PARAMETER notes + .PARAMETER note Notes about checkin .PARAMETER url @@ -37,7 +37,7 @@ function Reset-SnipeitAssetOwner() { [int]$location_id, - [string]$notes, + [string]$note, [parameter(mandatory = $false)] [string]$url, @@ -49,7 +49,7 @@ function Reset-SnipeitAssetOwner() { Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name $Values = @{ - "notes" = $notes + "note" = $note } if ($PSBoundParameters.ContainsKey('location_id')) { $Values.Add("location_id", $location_id) } From 2f1873497d3f68f3db1912ce660bd81b1c45a0ba Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Wed, 24 Nov 2021 15:09:16 +0200 Subject: [PATCH 2/2] fix #246 --- docs/Reset-SnipeitAssetOwner.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Reset-SnipeitAssetOwner.md b/docs/Reset-SnipeitAssetOwner.md index 2d6c098..5b0ff3f 100644 --- a/docs/Reset-SnipeitAssetOwner.md +++ b/docs/Reset-SnipeitAssetOwner.md @@ -13,7 +13,7 @@ Checkin asset ## SYNTAX ``` -Reset-SnipeitAssetOwner [-id] [[-status_id] ] [[-location_id] ] [[-notes] ] +Reset-SnipeitAssetOwner [-id] [[-status_id] ] [[-location_id] ] [[-note] ] [[-url] ] [[-apiKey] ] [-WhatIf] [-Confirm] [] ``` @@ -75,7 +75,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -notes +### -note Notes about checkin ```yaml