From ca8f3750b01c88fb0ae0d37577f798bb78ec3186 Mon Sep 17 00:00:00 2001 From: JihengLi Date: Mon, 23 Sep 2024 20:03:27 -0500 Subject: [PATCH] fix bug in confirm judging sessions api --- pages/api/confirm-judging-sessions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/confirm-judging-sessions.ts b/pages/api/confirm-judging-sessions.ts index 55172686..c269e892 100644 --- a/pages/api/confirm-judging-sessions.ts +++ b/pages/api/confirm-judging-sessions.ts @@ -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]) => {