Co-authored-by: Bailey Pumfleet <[email protected]>
This commit is contained in:
1 parent
a9a6d69ba6
commit
aff45e3451
3 files changed
+33
-33
No files matched your search
@@ -1,7 +1,6 @@
|
||||
import type { NextApiRequest, NextApiResponse } from "next";
|
||||
import { getSession } from "@lib/auth";
|
||||
import prisma from "../../../lib/prisma";
|
||||
import { handleLegacyConfirmationMail } from "./[user]";
|
||||
import { CalendarEvent } from "@lib/calendarClient";
|
||||
import EventRejectionMail from "@lib/emails/EventRejectionMail";
|
||||
import EventManager from "@lib/events/EventManager";
|
||||
@@ -71,13 +70,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
const eventManager = new EventManager(currentUser.credentials);
|
||||
const scheduleResult = await eventManager.create(evt, booking.uid);
|
||||
|
||||
await handleLegacyConfirmationMail(
|
||||
scheduleResult.results,
|
||||
{ requiresConfirmation: false },
|
||||
evt,
|
||||
booking.uid
|
||||
);
|
||||
|
||||
await prisma.booking.update({
|
||||
where: {
|
||||
id: bookingId,
|
||||
|
||||
Reference in new issue
Block a user