Skip to content

Commit

Permalink
Merge pull request #214 from osu-tournament-rating/fix/tournament-sub…
Browse files Browse the repository at this point in the history
…mission

Change format to lobbySize on tournament submission
  • Loading branch information
hburn7 authored Aug 24, 2024
2 parents d2eabac + d780edc commit 45a767b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export async function saveTournamentMatches(
abbreviation: formData.get('tournamentAbbreviation'),
forumUrl: formData.get('forumPostURL'),
rankRangeLowerBound: parseInt(formData.get('rankRestriction')),
format: parseInt(formData.get('teamSize')),
lobbySize: parseInt(formData.get('teamSize')),
ruleset: parseInt(formData.get('gameMode')),
ids: matchIDs,
});
Expand Down
2 changes: 1 addition & 1 deletion lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const MatchesSubmitFormSchema = z.object({
.min(1),
]),
rankRangeLowerBound: z.number().min(1),
format: z.number().min(1).max(8),
lobbySize: z.number().min(1).max(8),
ruleset: z.number().min(0).max(5),
ids: z
.array(
Expand Down

0 comments on commit 45a767b

Please sign in to comment.