From 22a5c8321a1c197f19891dc156868263e6141f7e Mon Sep 17 00:00:00 2001 From: empowerists <129067916+empowerists@users.noreply.github.com> Date: Thu, 8 Feb 2024 15:25:55 -0500 Subject: [PATCH] Fix License miss spell causing query to be null --- SnipeitPS/Public/Get-SnipeitActivity.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SnipeitPS/Public/Get-SnipeitActivity.ps1 b/SnipeitPS/Public/Get-SnipeitActivity.ps1 index 16f65ba..d30fb31 100644 --- a/SnipeitPS/Public/Get-SnipeitActivity.ps1 +++ b/SnipeitPS/Public/Get-SnipeitActivity.ps1 @@ -9,13 +9,13 @@ Gets a list of Snipe-it activity history A text string to search the Activity history .PARAMETER target_type -Type of target. One from following list 'Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','Licence','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User' +Type of target. One from following list 'Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','License','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User' .PARAMETER target_id Needed if target_type is specified .PARAMETER item_type -Type of target. One from following list 'Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','Licence','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User' +Type of target. One from following list 'Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','License','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User' .PARAMETER item_id Needed if target_type is specified @@ -49,14 +49,14 @@ function Get-SnipeitActivity() { [string]$search, [Parameter(Mandatory=$false)] - [ValidateSet('Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','Licence','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User')] + [ValidateSet('Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','License','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User')] [string]$target_type, [Parameter(Mandatory=$false)] [int]$target_id, [Parameter(Mandatory=$false)] - [ValidateSet('Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','Licence','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User')] + [ValidateSet('Accessory','Asset','AssetMaintenance','AssetModel','Category','Company','Component','Consumable','CustomField','Depreciable','Depreciation','Group','License','LicenseSeat','Location','Manufacturer','Statuslabel','Supplier','User')] [string]$item_type, [Parameter(Mandatory=$false)]