fix: workflow attach ics file is in base64 format (#23680)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user