fix: Fix recurring booking failure due to rate limiting (#12322)
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
1 parent
eb1eb722f2
commit
e4abc85382
4 files changed
+19
-10
No files matched your search
@@ -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);
|
||||
Reference in new issue
Block a user