Merge branch 'main' into fix/reusable-wysiwyg

This commit is contained in:
kodiakhq[bot] 2023-01-06 20:38:32 +00:00 committed by GitHub
commit f85edbc308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -1009,6 +1009,12 @@ async function handler(req: NextApiRequest & { userId?: number | undefined }) {
...eventTypeInfo,
bookingId,
rescheduleUid,
rescheduleStartTime: originalRescheduledBooking?.startTime
? dayjs(originalRescheduledBooking?.startTime).utc().format()
: undefined,
rescheduleEndTime: originalRescheduledBooking?.endTime
? dayjs(originalRescheduledBooking?.endTime).utc().format()
: undefined,
metadata: { ...metadata, ...reqBody.metadata },
eventTypeId,
status: "ACCEPTED",

View File

@ -82,10 +82,12 @@ const sendPayload = async (
data: CalendarEvent &
EventTypeInfo & {
metadata?: { [key: string]: string };
rescheduleUid?: string;
bookingId?: number;
status?: string;
smsReminderNumber?: string;
rescheduleUid?: string;
rescheduleStartTime?: string;
rescheduleEndTime?: string;
}
) => {
const { appId, payloadTemplate: template } = webhook;