diff --git a/src/m365/todo/commands/task/task-remove.ts b/src/m365/todo/commands/task/task-remove.ts index b24f575700a..fae8cf7032f 100644 --- a/src/m365/todo/commands/task/task-remove.ts +++ b/src/m365/todo/commands/task/task-remove.ts @@ -65,7 +65,7 @@ class TodoTaskRemoveCommand extends GraphCommand { } public async commandAction(logger: Logger, args: CommandArgs): Promise { - if (args.options.confirm) { + if (args.options.force) { await this.removeToDoTask(args); } else { diff --git a/src/m365/yammer/commands/group/group-user-remove.ts b/src/m365/yammer/commands/group/group-user-remove.ts index 5e9c891dd6a..879115cbc78 100644 --- a/src/m365/yammer/commands/group/group-user-remove.ts +++ b/src/m365/yammer/commands/group/group-user-remove.ts @@ -72,7 +72,7 @@ class YammerGroupUserRemoveCommand extends YammerCommand { } public async commandAction(logger: Logger, args: CommandArgs): Promise { - if (args.options.confirm) { + if (args.options.force) { await this.executeRemoveAction(args); } else {