Skip to content

Commit

Permalink
Merge pull request #42 from Readify/organization-membership
Browse files Browse the repository at this point in the history
Fixed payload for creating Organization Memberships
  • Loading branch information
RobFaie authored May 20, 2020
2 parents 52f7ac0 + f837bb3 commit e1a7af2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ stages:
steps:
- checkout: self
clean: true
- script: brew install gitversion
- script: dotnet tool install --global GitVersion.Tool --version 5.3.3
displayName: Install Gitversion
- pwsh: |
$version = gitversion | ConvertFrom-Json | ForEach-Object MajorMinorPatch
$version = dotnet-gitversion | ConvertFrom-Json | ForEach-Object MajorMinorPatch
Write-Host "##vso[build.updatebuildnumber]$version"
displayName: Set Build Number
- pwsh: |
Expand Down
4 changes: 2 additions & 2 deletions functions/New-OrganizationMembership.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function New-OrganizationMembership {
if ($PSCmdlet.ParameterSetName -eq 'Properties') {
$path = '/api/v2/organization_memberships.json'
$body = @{
group_membership = @{
organization_membership = @{
user_id = $UserId
organization_id = $OrganizationId
default = $Default
Expand All @@ -76,7 +76,7 @@ function New-OrganizationMembership {
} else {
$path = '/api/v2/organization_memberships/create_many.json'
$body = @{
group_memberships = @($Membership)
organization_memberships = @($Membership)
}
}

Expand Down

0 comments on commit e1a7af2

Please sign in to comment.