Skip to content

Commit

Permalink
Renamed useSearchParam to useOutlookSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Oct 25, 2024
1 parent 166a947 commit ba91e62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/email-client/outlook-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}"`;
Expand Down
4 changes: 2 additions & 2 deletions workers/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ba91e62

Please sign in to comment.