fix: workflow attach ics file is in base64 format (#23680)

This commit is contained in:
Anik Dhabal Babu
2025-09-09 03:11:34 +00:00
committed by GitHub
parent 300cd31efb
commit ce4d71ba2e
2 changed files with 3 additions and 6 deletions
@@ -343,9 +343,7 @@ export async function handler(req: NextRequest) {
attachments: reminder.workflowStep.includeCalendarEvent
? [
{
content: Buffer.from(generateIcsString({ event, status: "CONFIRMED" }) || "").toString(
"base64"
),
content: generateIcsString({ event, status: "CONFIRMED" }) || "",
filename: "event.ics",
type: "text/calendar; method=REQUEST",
disposition: "attachment",
@@ -251,12 +251,11 @@ export const scheduleEmailReminder = async (args: scheduleEmailReminderArgs) =>
const attachments = includeCalendarEvent
? [
{
content: Buffer.from(
content:
generateIcsString({
event: emailEvent,
status,
}) || ""
).toString("base64"),
}) || "",
filename: "event.ics",
type: "text/calendar; method=REQUEST",
disposition: "attachment",