mongo-control
Advanced tools
Comparing version 1.0.69 to 1.0.70
@@ -497,4 +497,9 @@ var MongoClient = require('mongodb').MongoClient | ||
var query = { | ||
$and: [params.query] | ||
var query | ||
if(query.$and) { | ||
query = params.query | ||
} else { | ||
query = { | ||
$and: [params.query] | ||
} | ||
} | ||
@@ -509,3 +514,3 @@ | ||
params.limit = 1 | ||
} else if(params.prev) { | ||
@@ -535,2 +540,4 @@ var prevObj = {$or: [{$lt: params.prev}]} | ||
console.log(query) | ||
MongoClient.connect(params.db, function (e, db) { | ||
@@ -537,0 +544,0 @@ if (e) return err(e) |
{ | ||
"name": "mongo-control", | ||
"version": "1.0.69", | ||
"version": "1.0.70", | ||
"description": "Simple functions to control mongo", | ||
@@ -5,0 +5,0 @@ "main": "mongo.control.js", |
30815
975