mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-26 05:12:19 -05:00
save matches to db
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user