Skip to content

Commit

Permalink
Handle bools
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbosco committed Apr 17, 2024
1 parent 8b69a6d commit 6619229
Show file tree
Hide file tree
Showing 7 changed files with 6,624 additions and 8,276 deletions.
14,881 changes: 6,614 additions & 8,267 deletions dist/typesense-instantsearch-adapter.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense-instantsearch-adapter.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense-instantsearch-adapter.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense-instantsearch-adapter.min.js.map

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions lib/SearchRequestAdapter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/SearchRequestAdapter.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/SearchRequestAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ export class SearchRequestAdapter {

// If this is a conversational search, then move conversation related params to query params
let commonParams = {};
if (searches[0]?.conversation === true) {
if (searches[0]?.conversation === true || searches[0]?.conversation === "true") {
const { q, conversation, conversation_id, conversation_model_id } = searches[0];
commonParams = { q, conversation, conversation_id, conversation_model_id };

Expand Down

0 comments on commit 6619229

Please sign in to comment.