diff --git a/src/classes/collection/collection.ts b/src/classes/collection/collection.ts index f56204c8e..abca9c089 100644 --- a/src/classes/collection/collection.ts +++ b/src/classes/collection/collection.ts @@ -504,11 +504,11 @@ export class Collection implements ICollection { } return this.clone().primaryKeys().then(keys => { const criteria = isPlainKeyRange(ctx) && - ctx.limit === Infinity && - (typeof changes !== 'function' || changes === deleteCallback) && { - index: ctx.index, - range: ctx.range - }; + ctx.limit === Infinity && + (typeof changes !== 'function' || changes === deleteCallback) && { + index: ctx.index, + range: ctx.range + }; const nextChunk = (offset: number) => { const count = Math.min(limit, keys.length - offset);