From fc13200028eef7cc5a387a3f1b7c438b87049f27 Mon Sep 17 00:00:00 2001 From: Rafael Kaufmann Date: Thu, 31 Oct 2013 16:32:27 -0200 Subject: [PATCH] Fixes erroneous misformatting of top-level $and/$or clauses --- lib/Drivers/DML/mongodb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Drivers/DML/mongodb.js b/lib/Drivers/DML/mongodb.js index 5b15f30c..5a718824 100644 --- a/lib/Drivers/DML/mongodb.js +++ b/lib/Drivers/DML/mongodb.js @@ -353,7 +353,7 @@ Driver.prototype.clear = function (table, cb) { function convertToDB(obj, timeZone) { for (var k in obj) { - if (Array.isArray(obj[k])) { + if (Array.isArray(obj[k]) && k[0] != '$') { for (var i = 0; i < obj[k].length; i++) { obj[k][i] = convertToDBVal(k, obj[k][i], timeZone); }