Skip to content

Commit

Permalink
Update TeamMenu.java
Browse files Browse the repository at this point in the history
  • Loading branch information
smmj01 authored Jan 17, 2022
1 parent bffd791 commit 56f6c1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/view/TeamMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ else if (isValidCommand(Command, Commands.COMMAND_PATTERNS[43])) {
String taskTitle = commandMatcher.group(1);
String startTime = commandMatcher.group(2);
String deadline = commandMatcher.group(3);
result = teamController.createTaskForTeam(assignedTeam,taskTitle, startTime, deadline);
result = teamController.createTaskForTeam(assignedUser,assignedTeam,taskTitle, startTime, deadline);
}
else if (isValidCommand(Command, Commands.COMMAND_PATTERNS[44])) {
teamController.showTeamMembers(assignedTeam);
Expand All @@ -102,13 +102,13 @@ else if (isValidCommand(Command, Commands.COMMAND_PATTERNS[47])) {
commandMatcher = parse(Command, 47);

String username = commandMatcher.group(1);
result = teamController.suspendTeamMember(assignedUser,assignedTeam);
result = teamController.suspendTeamMember(assignedUser,assignedTeam,username);
}
else if (isValidCommand(Command, Commands.COMMAND_PATTERNS[48])) {
commandMatcher = parse(Command, 48);

String username = commandMatcher.group(1);
result = teamController.promoteTeamLeader(assignedTeam,assignedUser);
result = teamController.promoteTeamLeader(assignedTeam,assignedUser,username);
}
else if (isValidCommand(Command, Commands.COMMAND_PATTERNS[49])) {
commandMatcher = parse(Command, 49);
Expand Down

0 comments on commit 56f6c1e

Please sign in to comment.