Skip to content

Commit

Permalink
[FIX] unable to create team due to team leader position unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
nogamsung committed Feb 21, 2024
1 parent b22edf1 commit 05d3985
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,19 @@ private void validateLeaderPosition(TeamCreateRequest request, User user) {
case DESIGNER:
if (request.getDesignerMaxCnt() <= 0)
throw new CustomException(TEAM_LEADER_POSITION_UNAVAILABLE);
break;
case BACKEND:
if (request.getBackendMaxCnt() <= 0)
throw new CustomException(TEAM_LEADER_POSITION_UNAVAILABLE);
break;
case FRONTEND:
if (request.getFrontendMaxCnt() <= 0)
throw new CustomException(TEAM_LEADER_POSITION_UNAVAILABLE);
break;
case MANAGER:
if (request.getManagerMaxCnt() <= 0)
throw new CustomException(TEAM_LEADER_POSITION_UNAVAILABLE);
break;
}
}
}

0 comments on commit 05d3985

Please sign in to comment.