fix reacreate of bookingReferences when rescheduling (#2272)
Co-authored-by: Omar López <[email protected]>
This commit is contained in:
1 parent
296697370d
commit
92534c7e6d
2 files changed
+3
-2
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user