fix: v2 bookings attendeeEmail filter (#20506)

* fix: GET bookings if attendeeEmail belong to managed user

* fix: GET bookings if attendeeEmail belong to managed user but does not include oAuthId
This commit is contained in:
Lauris Skraucis authored and GitHub committed 2025-04-02 15:21:27 +00:00
1 parent 8c9eb18463
commit 563b31b7d0
3 files changed
+115 -5

No files matched your search

@@ -61,6 +61,14 @@ export class GetBookingsInput_2024_08_13 {
description: "Filter bookings by the attendee's email address.",
example: "[email protected]",
})
@Transform(({ value }) => {
if (typeof value === "string") {
// note(Lauris): we replace inner white spaces with "+" because managed user emails have "+" in them but if they are not URL encoded
// when making request "+" becomes empty space " ".
return value.trim().replace(/\s+/g, "+");
}
return value;
})
attendeeEmail?: string;
@IsString()