File tree 1 file changed +9
-16
lines changed
packages/firestore/src/local
1 file changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -372,23 +372,16 @@ export class IndexedDbIndexManager implements IndexManager {
372
372
)
373
373
: this . generateEmptyBound ( indexId + 1 ) ;
374
374
375
- indexRanges . push (
376
- ...this . createRange (
377
- lowerBound ,
378
- upperBound ,
379
- notInValues . map (
380
- (
381
- notIn // make non-nullable
382
- ) =>
383
- this . generateLowerBound (
384
- indexId ,
385
- arrayValue ,
386
- notIn ,
387
- /* inclusive= */ true
388
- )
389
- )
375
+ const notInBound = notInValues . map ( notIn =>
376
+ this . generateLowerBound (
377
+ indexId ,
378
+ arrayValue ,
379
+ notIn ,
380
+ /* inclusive= */ true
390
381
)
391
382
) ;
383
+
384
+ indexRanges . push ( ...this . createRange ( lowerBound , upperBound , notInBound ) ) ;
392
385
}
393
386
394
387
return indexRanges ;
@@ -918,7 +911,7 @@ export class IndexedDbIndexManager implements IndexManager {
918
911
upper : IndexEntry ,
919
912
notInValues : IndexEntry [ ]
920
913
) : IDBKeyRange [ ] {
921
- // The notIb values need to be sorted and unique so that we can return a
914
+ // The notIn values need to be sorted and unique so that we can return a
922
915
// sorted set of non-overlapping ranges.
923
916
notInValues = notInValues
924
917
. sort ( ( l , r ) => indexEntryComparator ( l , r ) )
You can’t perform that action at this time.
0 commit comments