From 8d15b80d19c05c1026b4c731f5647f6590aec3cc Mon Sep 17 00:00:00 2001 From: "riho.takagi" Date: Thu, 21 Nov 2024 11:35:44 -0500 Subject: [PATCH] Fix replyTo paramater --- booking-app/app/api/bookings/route.ts | 2 -- booking-app/app/lib/sendHTMLEmail.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/booking-app/app/api/bookings/route.ts b/booking-app/app/api/bookings/route.ts index d7179e42..3b1fe324 100644 --- a/booking-app/app/api/bookings/route.ts +++ b/booking-app/app/api/bookings/route.ts @@ -10,7 +10,6 @@ import { serverUpdateDataByCalendarEventId, } from "@/components/src/server/admin"; import { deleteEvent, insertEvent } from "@/components/src/server/calendars"; -import { getBookingToolDeployUrl } from "@/components/src/server/ui"; import { ApproverType, BookingFormDetails, @@ -115,7 +114,6 @@ async function handleBookingApprovalEmails( email, startDate: bookingCalendarInfo?.startStr, endDate: bookingCalendarInfo?.endStr, - bookingToolUrl: getBookingToolDeployUrl(), headerMessage: "This is a request email for first approval.", requestNumber: sequentialId, }; diff --git a/booking-app/app/lib/sendHTMLEmail.ts b/booking-app/app/lib/sendHTMLEmail.ts index 991fbe9b..68fb838c 100644 --- a/booking-app/app/lib/sendHTMLEmail.ts +++ b/booking-app/app/lib/sendHTMLEmail.ts @@ -25,7 +25,7 @@ interface SendHTMLEmailParams { requestNumber: number; body: string; approverType?: ApproverType; - replyTo: string; + replyTo?: string; } export const sendHTMLEmail = async (params: SendHTMLEmailParams) => {