From f39ae3a11875b9e5f8343a5fbf50ea173ede586e Mon Sep 17 00:00:00 2001 From: Leandro Ferrari Thomaz Date: Sun, 17 Nov 2013 00:20:08 +0100 Subject: [PATCH] New operator and extended dot operator subdocument search --- lib/model.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/model.js b/lib/model.js index e10b535..c683fff 100644 --- a/lib/model.js +++ b/lib/model.js @@ -669,7 +669,6 @@ function matchQueryPart (obj, queryKey, queryValue) { // Check if the object value is an array if (util.isArray(objValue)) { // Check if it's a query operator array - // TODO REFACTOR!!! keys[0]!!! if (queryValue !== null && typeof queryValue === 'object' && !util.isRegExp(queryValue)) { keys = Object.keys(queryValue); firstChars = _.map(keys, function (item) { return item[0]; });