From ba91e62b3ca181beaf10af4e48fd75a90e2af747 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Fri, 25 Oct 2024 12:40:30 +0300 Subject: [PATCH] Renamed useSearchParam to useOutlookSearch --- lib/email-client/outlook-client.js | 2 +- workers/api.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/email-client/outlook-client.js b/lib/email-client/outlook-client.js index d9f3e3406..cd6d2808c 100644 --- a/lib/email-client/outlook-client.js +++ b/lib/email-client/outlook-client.js @@ -366,7 +366,7 @@ class OutlookClient extends BaseClient { }; if (query.search) { - if (query.useSearchParam) { + if (query.useOutlookSearch) { const $search = this.prepareSearchQuery(query.search); if ($search) { requestQuery.$search = `"${$search}"`; diff --git a/workers/api.js b/workers/api.js index 6a9d624d8..383175914 100644 --- a/workers/api.js +++ b/workers/api.js @@ -5034,13 +5034,13 @@ const init = async () => { payload: Joi.object({ search: searchSchema, - useSearchParam: Joi.boolean() + useOutlookSearch: Joi.boolean() .truthy('Y', 'true', '1') .falsy('N', 'false', 0) .description( 'MS Graph only. If enabled, uses the $search parameter for MS Graph search queries instead of $filter. This allows searching the "to", "cc", and "bcc" fields. Note that $search does not support paging, returns results sorted by relevance rather than date, and may time out if ordering is applied with many results.' ) - .label('useSearchParam') + .label('useOutlookSearch') .optional(), documentQuery: Joi.object() .min(1)