Fix subjects for emails for Optin Bookings (#5148)
* Fix subject for manually confirmed booking * Fix subject for request email to attendee Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
parent
68ae3c48a0
commit
00c3e9680c
|
@ -18,7 +18,7 @@ export default class AttendeeRequestEmail extends AttendeeScheduledEmail {
|
|||
to: toAddresses.join(","),
|
||||
subject: `${this.calEvent.organizer.language.translate("booking_submitted_subject", {
|
||||
eventType: this.calEvent.type,
|
||||
name: this.calEvent.attendees[0].name,
|
||||
name: this.calEvent.team?.name || this.calEvent.organizer.name,
|
||||
date: this.getFormattedDate(),
|
||||
})}`,
|
||||
html: renderEmail("AttendeeRequestEmail", {
|
||||
|
|
|
@ -441,6 +441,7 @@ export const bookingsRouter = createProtectedRouter()
|
|||
select: {
|
||||
id: true,
|
||||
recurringEvent: true,
|
||||
title: true,
|
||||
requiresConfirmation: true,
|
||||
workflows: {
|
||||
include: {
|
||||
|
@ -525,7 +526,7 @@ export const bookingsRouter = createProtectedRouter()
|
|||
const attendeesList = await Promise.all(attendeesListPromises);
|
||||
|
||||
const evt: CalendarEvent = {
|
||||
type: booking.title,
|
||||
type: booking.eventType?.title || booking.title,
|
||||
title: booking.title,
|
||||
description: booking.description,
|
||||
customInputs: isPrismaObjOrUndefined(booking.customInputs),
|
||||
|
|
Loading…
Reference in New Issue
Block a user