Commit 4d7fa423 by Wes Freeman

Fixing for #25

parent b1297f9d
...@@ -52,7 +52,7 @@ if (db[collection].count() == 0) { ...@@ -52,7 +52,7 @@ if (db[collection].count() == 0) {
} }
if (typeof query === "undefined") { var query = {}; } if (typeof query === "undefined") { var query = {}; }
print("Using query of " + query.toSource()); print("Using query of " + JSON.stringify(query));
if (typeof limit === "undefined") { var limit = db[collection].find(query).count(); } if (typeof limit === "undefined") { var limit = db[collection].find(query).count(); }
print("Using limit of " + limit); print("Using limit of " + limit);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment