Skip to content

Commit

Permalink
Fixed Asset creation / updates due to now using custom_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
iqinit committed Feb 27, 2021
1 parent e6431dd commit 2d0e70e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Public/New-HuduAsset.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function New-HuduAsset {

$asset.asset.add('name',$name)
$asset.asset.add('asset_layout_id',$asset_layout_id)
$asset.asset.add('fields',$fields)
$asset.asset.add('custom_fields',$fields)

$json = $asset | convertto-json -Depth 10

Expand Down
2 changes: 1 addition & 1 deletion Public/Set-HuduAsset.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Set-HuduAsset {

$asset.asset.add('name',$name)
$asset.asset.add('asset_layout_id',$asset_layout_id)
$asset.asset.add('fields',$fields)
$asset.asset.add('custom_fields',$fields)

$json = $asset | convertto-json -Depth 10

Expand Down

0 comments on commit 2d0e70e

Please sign in to comment.