Fix License miss spell causing query to be null

This commit is contained in:
empowerists 2024-02-08 15:25:55 -05:00 committed by GitHub
parent d14244d727
commit 22a5c8321a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,13 +9,13 @@ Gets a list of Snipe-it activity history
A text string to search the Activity history A text string to search the Activity history
.PARAMETER target_type .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 .PARAMETER target_id
Needed if target_type is specified Needed if target_type is specified
.PARAMETER item_type .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 .PARAMETER item_id
Needed if target_type is specified Needed if target_type is specified
@ -49,14 +49,14 @@ function Get-SnipeitActivity() {
[string]$search, [string]$search,
[Parameter(Mandatory=$false)] [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, [string]$target_type,
[Parameter(Mandatory=$false)] [Parameter(Mandatory=$false)]
[int]$target_id, [int]$target_id,
[Parameter(Mandatory=$false)] [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, [string]$item_type,
[Parameter(Mandatory=$false)] [Parameter(Mandatory=$false)]