Skip to content

Commit

Permalink
Update m365group-set.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nanddeepn authored Sep 25, 2024
1 parent 0724c63 commit 1b74c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/m365/entra/commands/m365group/m365group-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,14 +298,14 @@ class EntraM365GroupSetCommand extends GraphCommand {
const memberIds: string[] = await this.getUserIds(logger, args.options.memberIds, args.options.memberUserNames);

if (ownerIds.length !== 0) {
await this.updateUsers(logger, args.options.id, 'owners', ownerIds);
await this.updateUsers(logger, groupId, 'owners', ownerIds);
}
else if (this.debug) {
await logger.logToStderr('Owners not set. Skipping');
}

if (memberIds.length !== 0) {
await this.updateUsers(logger, args.options.id, 'members', ownerIds);
await this.updateUsers(logger, groupId, 'members', ownerIds);
}
else if (this.debug) {
await logger.logToStderr('Members not set. Skipping');
Expand Down

0 comments on commit 1b74c79

Please sign in to comment.