mirror of
https://github.com/appy-one/acebase.git
synced 2026-06-30 06:02:02 -06:00
Fixed 'in' & '!in' index result filtering, see #15
This commit is contained in:
parent
2d4d872875
commit
bae3dfd68e
1 changed files with 1 additions and 1 deletions
|
|
@ -2524,7 +2524,7 @@ class IndexQueryResults extends Array {
|
|||
return op === 'like' ? isLike : !isLike;
|
||||
}
|
||||
if (op === 'in' || op === '!in') {
|
||||
const isIn = compare instanceof Array && compare.indexOf(value);
|
||||
const isIn = compare instanceof Array && compare.includes(value);
|
||||
return op === 'in' ? isIn : !isIn;
|
||||
}
|
||||
if (op == 'between' || op === '!between') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue