Skip to content

Commit

Permalink
datastore: Arrayize input field names.
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyll committed Jul 21, 2014
1 parent afbea60 commit bb7a70a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/datastore/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ Query.prototype.order = function(order) {
};

Query.prototype.groupBy = function(fieldNames) {
var fields = util.arrayize(fieldNames);
var q = util.extend(this, new Query());
q.groupByVal = fieldNames;
q.groupByVal = fields;
return q;
};

Expand Down

0 comments on commit bb7a70a

Please sign in to comment.