Skip to content

Commit

Permalink
Merge pull request #365 from rafaelkaufmann/master
Browse files Browse the repository at this point in the history
Fixes erroneous misformatting of top-level $and/$or clauses
  • Loading branch information
dresende committed Nov 1, 2013
2 parents 3b714ab + fc13200 commit 8247857
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 8247857

Please sign in to comment.