Skip to content

Commit

Permalink
Stub out the spots where implementationSniffingTactic needs to apply
Browse files Browse the repository at this point in the history
  • Loading branch information
mikermcneil committed May 28, 2018
1 parent bc618d7 commit dce4c0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/waterline/methods/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ module.exports = function stream( /* criteria?, eachRecordFn?, explicitCbMaybe?,
// that occur after the first.
var didIterateeAlreadyHalt;
try {
// TODO: handle stream iteratees with no declared callback parameter
var promiseMaybe = query.eachBatchFn(batchOfRecords, function (err) {
if (err) { return proceed(err); }

Expand Down Expand Up @@ -390,6 +391,7 @@ module.exports = function stream( /* criteria?, eachRecordFn?, explicitCbMaybe?,
// that occur after the first.
var didIterateeAlreadyHalt;
try {
// TODO: handle stream iteratees with no declared callback parameter
var promiseMaybe = query.eachRecordFn(record, function (err) {
if (err) { return next(err); }

Expand Down

0 comments on commit dce4c0f

Please sign in to comment.