Skip to content
This repository was archived by the owner on Jul 7, 2022. It is now read-only.

Commit 7dec6fb

Browse files
committed
don't optimize the template
if a batch doesn't need all fields - let the child batch define them
1 parent 2c4cce3 commit 7dec6fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Batch = function(options, run) {
2525
this.options = {
2626
collection: 'collectionname',
2727
conditions: {},
28-
fields: {_id: 1},
28+
fields: {},
2929
sort: { _id: 1 },
3030
step: 0,
3131

0 commit comments

Comments
 (0)