Comparing version 7.8.0 to 7.8.1
@@ -131,5 +131,9 @@ 'use strict'; | ||
let count; | ||
const step = (err) => { | ||
if (!options.sort) { | ||
settings.sort = { key: this.primary, order: 'ascending' }; | ||
} | ||
let count = null; | ||
const step = (err, results) => { | ||
if (err) { | ||
@@ -139,3 +143,9 @@ return callback(err); | ||
if (count < options.chunks) { | ||
if (results) { | ||
results.forEach(step.each); | ||
} | ||
if (count !== null && | ||
count < options.chunks) { | ||
return callback(); | ||
@@ -142,0 +152,0 @@ } |
{ | ||
"name": "penseur", | ||
"description": "Lightweight RethinkDB wrapper", | ||
"version": "7.8.0", | ||
"version": "7.8.1", | ||
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/hueniverse/penseur", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59860
1557