fix: Fix recurring booking failure due to rate limiting (#12322)

Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
Hariom BalharaandKeith Williams authored and GitHub committed 2023-11-10 20:06:52 +00:00
1 parent eb1eb722f2
commit e4abc85382
4 files changed
+19 -10

No files matched your search

+2 -2
View File
@@ -205,8 +205,8 @@ import { defaultResponder } from "@calcom/lib/server";
async function handler(req: NextApiRequest) {
const { userId, isAdmin } = req;
if (isAdmin) req.userId = req.body.userId || userId;
const booking = await handleNewBooking(req);
return booking;
return await handleNewBooking(req);
}
export default defaultResponder(handler);