Add cancel status to cancelled booking
parent
7ed31c441c
commit
a6f881c087
|
@ -1,9 +1,20 @@
|
||||||
import { renderEmail } from "../";
|
import { renderEmail } from "../";
|
||||||
|
import generateIcsString from "../lib/generateIcsString";
|
||||||
import AttendeeScheduledEmail from "./attendee-scheduled-email";
|
import AttendeeScheduledEmail from "./attendee-scheduled-email";
|
||||||
|
|
||||||
export default class AttendeeCancelledEmail extends AttendeeScheduledEmail {
|
export default class AttendeeCancelledEmail extends AttendeeScheduledEmail {
|
||||||
protected getNodeMailerPayload(): Record<string, unknown> {
|
protected getNodeMailerPayload(): Record<string, unknown> {
|
||||||
return {
|
return {
|
||||||
|
icalEvent: {
|
||||||
|
filename: "event.ics",
|
||||||
|
content: generateIcsString({
|
||||||
|
event: this.calEvent,
|
||||||
|
t: this.t,
|
||||||
|
role: "organizer",
|
||||||
|
status: "CANCELLED",
|
||||||
|
}),
|
||||||
|
method: "request",
|
||||||
|
},
|
||||||
to: `${this.attendee.name} <${this.attendee.email}>`,
|
to: `${this.attendee.name} <${this.attendee.email}>`,
|
||||||
from: `${this.calEvent.organizer.name} <${this.getMailerOptions().from}>`,
|
from: `${this.calEvent.organizer.name} <${this.getMailerOptions().from}>`,
|
||||||
replyTo: this.calEvent.organizer.email,
|
replyTo: this.calEvent.organizer.email,
|
||||||
|
|
Loading…
Reference in New Issue