mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-15 02:35:47 +00:00
fix #246
This commit is contained in:
parent
ec40912018
commit
db2fb6278c
1 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
.PARAMETER location_id
|
.PARAMETER location_id
|
||||||
Location id to change asset location to
|
Location id to change asset location to
|
||||||
|
|
||||||
.PARAMETER notes
|
.PARAMETER note
|
||||||
Notes about checkin
|
Notes about checkin
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
|
|
@ -37,7 +37,7 @@ function Reset-SnipeitAssetOwner() {
|
||||||
|
|
||||||
[int]$location_id,
|
[int]$location_id,
|
||||||
|
|
||||||
[string]$notes,
|
[string]$note,
|
||||||
|
|
||||||
[parameter(mandatory = $false)]
|
[parameter(mandatory = $false)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
@ -49,7 +49,7 @@ function Reset-SnipeitAssetOwner() {
|
||||||
Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
|
Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
|
||||||
|
|
||||||
$Values = @{
|
$Values = @{
|
||||||
"notes" = $notes
|
"note" = $note
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($PSBoundParameters.ContainsKey('location_id')) { $Values.Add("location_id", $location_id) }
|
if ($PSBoundParameters.ContainsKey('location_id')) { $Values.Add("location_id", $location_id) }
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue