mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-25 12:35:18 -05:00
Tournament: Allow admin to add members to team after full
This commit is contained in:
@@ -115,10 +115,6 @@ export const action: ActionFunction = async ({ request, params }) => {
|
||||
case "ADD_MEMBER": {
|
||||
const team = teams.find((t) => t.id === data.teamId);
|
||||
validate(team, "Invalid team id");
|
||||
validate(
|
||||
team.members.length < TOURNAMENT.TEAM_MAX_MEMBERS,
|
||||
"Team is full"
|
||||
);
|
||||
validate(
|
||||
!teams.some((t) =>
|
||||
t.members.some((m) => m.userId === data["user[value]"])
|
||||
|
||||
Reference in New Issue
Block a user