fix reacreate of bookingReferences when rescheduling (#2272)

Co-authored-by: Omar López <[email protected]>
This commit is contained in:
alannncandOmar López authored and GitHub committed 2022-03-24 23:29:32 +00:00
1 parent 296697370d
commit 92534c7e6d
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -636,7 +636,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
})
);
await Promise.all(promises);
// Avoid passing referencesToCreate with id unique constrain values
await prisma.booking.update({
where: {
uid: booking.uid,