diff --git a/CHANGELOG.md b/CHANGELOG.md index 26cad3f..a1c833e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,9 +9,13 @@ See [keep a changelog](https://keepachangelog.com/en/1.0.0/) for information abo ## [Unreleased] +### Changed + +- Changed search query to only allow search in subject. + ## [1.1.1] - 2023-08-24 -## Changed +### Changed - Changed user bookings to paginated diff --git a/src/Service/MicrosoftGraphBookingService.php b/src/Service/MicrosoftGraphBookingService.php index cf3f545..7ce3d4d 100644 --- a/src/Service/MicrosoftGraphBookingService.php +++ b/src/Service/MicrosoftGraphBookingService.php @@ -361,7 +361,7 @@ public function getUserBookings(string $userId, ?string $search = null, int $pag $queryString = "(body:\"$userIdString\")"; if (null !== $search && strlen($search) > 1) { - $queryString .= " AND (body:\"$search\")"; + $queryString .= " AND (subject:\"$search\")"; } $body = [