Compare commits

..

No commits in common. "007ff4bed38931b56b5b52a07fa38eed57fc9ca4" and "7866a1d06fa6b51faf81dad24481cc735c010adf" have entirely different histories.

1 changed files with 1 additions and 4 deletions

View File

@ -85,11 +85,9 @@ class MongoReadStream extends Readable {
Object.assign(query, searchOptions); Object.assign(query, searchOptions);
} }
const projection = { 'value.location': 0 }; this._cursor = c.find(query).sort({
this._cursor = c.find(query, { projection }).sort({
_id: options.reverse ? -1 : 1, _id: options.reverse ? -1 : 1,
}); });
console.log(query);
if (options.limit && options.limit !== -1) { if (options.limit && options.limit !== -1) {
this._cursor = this._cursor.limit(options.limit); this._cursor = this._cursor.limit(options.limit);
} }
@ -107,7 +105,6 @@ class MongoReadStream extends Readable {
if (this._destroyed) { if (this._destroyed) {
return; return;
} }
console.log(doc);
let key = undefined; let key = undefined;
let value = undefined; let value = undefined;