Skip to content

Commit

Permalink
Fixed issue where New-SSGroupObject returned both pre-built object …
Browse files Browse the repository at this point in the history
…and built object
  • Loading branch information
Skylar committed Mar 8, 2021
1 parent 41db6e9 commit ca67d97
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@

## 0.1.3 - 2021-01-27
- Miscellaneous
- Fixed some parameter attributes for `New-SSCellHyperlink`, `Add-SmartsheetSheet`, `Add-SmartsheetSheetFromTemplate`, and `Move-SmartsheetSheet`.
- Fixed some parameter attributes for `New-SSCellHyperlink`, `Add-SmartsheetSheet`, `Add-SmartsheetSheetFromTemplate`, and `Move-SmartsheetSheet`.
## 0.1.4 - 2021-03-08
- Miscellaneous
- Fixed issue where `New-SSGroupObject` returned both pre-built object and built object
2 changes: 1 addition & 1 deletion Source/PSSmartsheet.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
RootModule = 'PSSmartsheet.psm1'

# Version number of this module.
ModuleVersion = '0.1.3'
ModuleVersion = '0.1.4'

# Supported PSEditions
CompatiblePSEditions = @('Core', 'Desktop')
Expand Down
8 changes: 4 additions & 4 deletions Source/Public/Helpers/New-SSGroupObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Function New-SSGroupObject {
[Smartsheet.Api.Models.GroupMember[]]$groupMembers = $MemberEmail.foreach{
[Smartsheet.Api.Models.GroupMember+AddGroupMemberBuilder]::new($_).Build()
}
$GroupObject.SetMembers($groupMembers)
[void]$GroupObject.SetMembers($groupMembers)
}
$GroupObject.Build()
Break
Expand All @@ -71,13 +71,13 @@ Function New-SSGroupObject {
$GroupObject = [Smartsheet.Api.Models.Group+UpdateGroupBuilder]::new($GroupID)
Switch ($PSBoundParameters.Keys) {
'Name' {
$GroupObject.SetName($Name)
[void]$GroupObject.SetName($Name)
}
'Description' {
$GroupObject.SetDescription($Description)
[void]$GroupObject.SetDescription($Description)
}
'OwnerID' {
$GroupObject.SetOwnerId($OwnerID)
[void]$GroupObject.SetOwnerId($OwnerID)
}
}
$GroupObject.Build()
Expand Down

0 comments on commit ca67d97

Please sign in to comment.