Skip to content

Commit

Permalink
fix bug in confirm judging sessions api
Browse files Browse the repository at this point in the history
  • Loading branch information
JihengLi committed Sep 24, 2024
1 parent 1455b04 commit ca8f375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/confirm-judging-sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
teamsByID.set(judgingSession.team._id.toString(), judgingSession.team);
});
const allTeams = [...teamsByID.values()];
allTeams.sort(team => new Date(team.createdAt).getTime());
// allTeams.sort(team => new Date(team.createdAt).getTime());

const promises: any[] = [];
[...allTeams.entries()].forEach(async ([i, team]) => {
Expand Down

0 comments on commit ca8f375

Please sign in to comment.