mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-15 02:35:47 +00:00
Merge branch 'develop' of github.com:snazy2000/SnipeitPS into feature/connect-snipeit
This commit is contained in:
commit
64d4d4f55d
2 changed files with 5 additions and 1 deletions
|
|
@ -140,6 +140,10 @@ function Invoke-SnipeitMethod {
|
||||||
elseif ($webResponse.status -eq 'success') {
|
elseif ($webResponse.status -eq 'success') {
|
||||||
$result = $webResponse.payload
|
$result = $webResponse.payload
|
||||||
}
|
}
|
||||||
|
#Search and query result with no results
|
||||||
|
elseif ($webResponse.total -eq 0){
|
||||||
|
$result = $null
|
||||||
|
}
|
||||||
#get operations with id returns just one object
|
#get operations with id returns just one object
|
||||||
else {
|
else {
|
||||||
$result = $webResponse
|
$result = $webResponse
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ function Set-SnipeitUser() {
|
||||||
[string]$last_name,
|
[string]$last_name,
|
||||||
|
|
||||||
[ValidateLength(1,256)]
|
[ValidateLength(1,256)]
|
||||||
[string]$userName,
|
[string]$username,
|
||||||
|
|
||||||
[string]$jobtitle,
|
[string]$jobtitle,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue