Permalink
Browse files

fix: error when use string in query(field)

  • Loading branch information...
XadillaX committed Jun 14, 2016
1 parent 8cbc609 commit be7b688f26bf94241f914d74f7cf44eb47befb5c
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/query.js
@@ -621,7 +621,10 @@ Query.prototype.field = function(fields) {
this.fields = fields;
return this;
}
this.fields = fields.split(",").remove("");
this.fields = λ.compact(fields.split(","));
this.fields = this.fields.map(function(name) {
return name.trim();
});
return this;
};

0 comments on commit be7b688

Please sign in to comment.