Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/features/CalendarEventBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,14 @@ export class CalendarEventBuilder {
return this;
}

withHashedLink(hashedLink?: string | null) {
this.event = {
...this.event,
hashedLink,
};
return this;
}

build(): CalendarEvent | null {
// Validate required fields
if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,7 @@ async function handler(
platformCancelUrl,
platformBookingUrl,
})
.withHashedLink(hasHashedBookingLink ? reqBody.hashedLink ?? null : null)
.build();

if (!builtEvt) {
Expand Down
1 change: 1 addition & 0 deletions packages/types/Calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export interface CalendarEvent {
// Instead of sending this per event.
// TODO: Links sent in email should be validated and automatically redirected to org domain or regular app. It would be a much cleaner way. Maybe use existing /api/link endpoint
bookerUrl?: string;
hashedLink?: string | null;
type: string;
title: string;
startTime: string;
Expand Down
Loading