Skip to content

Commit 4c47361

Browse files
fix: prevent platformClientId spoofing in booking metadata
Co-Authored-By: unknown <>
1 parent 8edd011 commit 4c47361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/api/v2/src/ee/bookings/2024-08-13/services/input.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export class InputBookingsService_2024_08_13 {
191191
timeZone: inputBooking.attendee.timeZone,
192192
language: inputBooking.attendee.language || "en",
193193
metadata: {
194-
...(inputBooking.metadata || {}),
194+
...(({ platformClientId: _, ...rest }) => rest)(inputBooking.metadata || {}),
195195
...(platformClientId && { platformClientId }),
196196
},
197197
hasHashedBookingLink: false,
@@ -531,7 +531,7 @@ export class InputBookingsService_2024_08_13 {
531531
timeZone: inputBooking.attendee.timeZone,
532532
language: inputBooking.attendee.language || "en",
533533
metadata: {
534-
...(inputBooking.metadata || {}),
534+
...(({ platformClientId: _, ...rest }) => rest)(inputBooking.metadata || {}),
535535
...(platformClientId && { platformClientId }),
536536
},
537537
hasHashedBookingLink: false,

0 commit comments

Comments
 (0)