mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
fixed logic error
This commit is contained in:
parent
3d48517fd4
commit
9262d0b32a
@ -40,7 +40,7 @@ class TypeSenseScoutSearchService implements ScoutSearchService
|
||||
$options['typo_tokens_threshold'] = (int) env('TYPESENSE_TYPO_TOKENS_THRESHOLD', 1);
|
||||
// prevent `Could not parse the filter query: unbalanced `&&` operands.` error
|
||||
// this adds support for typesense v0.24.1
|
||||
if ($options['filter_by'] === ' && ' || $options['filter_by'] === '&&') {
|
||||
if (array_key_exists('filter_by', $options) && ($options['filter_by'] === ' && ' || $options['filter_by'] === '&&')) {
|
||||
unset($options['filter_by']);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user