Co-authored-by: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>pull/1608/head^2
parent
c59dce1284
commit
cad77ad237
|
@ -1,5 +1,6 @@
|
|||
import { BookingStatus } from "@prisma/client";
|
||||
import async from "async";
|
||||
import dayjs from "dayjs";
|
||||
import { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
import { refund } from "@ee/lib/stripe/server";
|
||||
|
@ -98,8 +99,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||
title: bookingToDelete?.title,
|
||||
type: bookingToDelete?.eventType?.title as string,
|
||||
description: bookingToDelete?.description || "",
|
||||
startTime: bookingToDelete?.startTime.toISOString(),
|
||||
endTime: bookingToDelete?.endTime.toISOString(),
|
||||
startTime: bookingToDelete?.startTime ? dayjs(bookingToDelete.startTime).format() : "",
|
||||
endTime: bookingToDelete?.endTime ? dayjs(bookingToDelete.endTime).format() : "",
|
||||
organizer: {
|
||||
email: organizer.email,
|
||||
name: organizer.name ?? "Nameless",
|
||||
|
|
Loading…
Reference in New Issue