waterline
Advanced tools
Comparing version 0.10.13 to 0.10.14
@@ -299,2 +299,7 @@ /** | ||
// If the criteria is an array of objects, wrap it in an "or" | ||
if (Array.isArray(criteria) && _.all(criteria, function(crit) {return _.isObject(crit);})) { | ||
criteria = {or: criteria}; | ||
} | ||
// Normalize criteria | ||
@@ -301,0 +306,0 @@ criteria = normalize.criteria(criteria); |
@@ -36,2 +36,7 @@ /** | ||
// If the criteria is an array of objects, wrap it in an "or" | ||
if (Array.isArray(criteria) && _.all(criteria, function(crit) {return _.isObject(crit);})) { | ||
criteria = {or: criteria}; | ||
} | ||
// Check if criteria is an integer or string and normalize criteria | ||
@@ -194,2 +199,7 @@ // to object, using the specified primary key field. | ||
// If the criteria is an array of objects, wrap it in an "or" | ||
if (Array.isArray(criteria) && _.all(criteria, function(crit) {return _.isObject(crit);})) { | ||
criteria = {or: criteria}; | ||
} | ||
// Check if criteria is an integer or string and normalize criteria | ||
@@ -196,0 +206,0 @@ // to object, using the specified primary key field. |
{ | ||
"name": "waterline", | ||
"description": "An ORM for Node.js and the Sails framework", | ||
"version": "0.10.13", | ||
"version": "0.10.14", | ||
"homepage": "http://github.com/balderdashy/waterline", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
331252
8855