mongo-control
Advanced tools
Comparing version 1.0.65 to 1.0.66
@@ -493,9 +493,10 @@ var MongoClient = require('mongodb').MongoClient | ||
} | ||
if(params.next) { | ||
params.query._id = {$gt: new ObjectID(params.next)} | ||
} else if(params.prev) { | ||
params.query._id = {$lt: new ObjectID(params.next)} | ||
} | ||
} | ||
if(params.next) { | ||
params.query._id = {$gt: new ObjectID(params.next)} | ||
} else if(params.prev) { | ||
params.query._id = {$lt: new ObjectID(params.next)} | ||
} | ||
if (params.projection) { | ||
@@ -502,0 +503,0 @@ if (typeof params.projection === 'string') { |
{ | ||
"name": "mongo-control", | ||
"version": "1.0.65", | ||
"version": "1.0.66", | ||
"description": "Simple functions to control mongo", | ||
@@ -5,0 +5,0 @@ "main": "mongo.control.js", |
30277