Skip to content

Commit

Permalink
Fixes erroneous misformatting of top-level $and/$or clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelkaufmann committed Oct 31, 2013
1 parent dd67c7c commit fc13200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Drivers/DML/mongodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit fc13200

Please sign in to comment.