diff --git a/pages/api/play/matches.ts b/pages/api/play/matches.ts index 436829f74..b1f5a3711 100644 --- a/pages/api/play/matches.ts +++ b/pages/api/play/matches.ts @@ -169,7 +169,11 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) { }) ); - // await prisma.$transaction([updateLadderMatch, ...updateWinners, ...updateLosers] as any); + await prisma.$transaction([ + updateLadderMatch, + ...updateWinners, + ...updateLosers, + ] as any); res.status(200).end(); } catch (e) { if (e instanceof z.ZodError) {