Skip to content

Commit

Permalink
fix singular add
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Jan 20, 2025
1 parent e3c3b1f commit 6f5a320
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ Function Invoke-ExecAddGDAPRole {

$RoleMappings = [System.Collections.Generic.List[object]]::new()
if ($ExistingRoleMappings) {
$RoleMappings.AddRange($ExistingRoleMappings)
$RoleMappings.AddRange(@($ExistingRoleMappings))
}
if ($NewRoleMappings) {
$RoleMappings.AddRange($NewRoleMappings)
$RoleMappings.AddRange(@($NewRoleMappings))
}

if ($Request.Body.templateId) {
Expand Down

0 comments on commit 6f5a320

Please sign in to comment.