Skip to content

Commit bb7a70a

Browse files
committed
datastore: Arrayize input field names.
1 parent afbea60 commit bb7a70a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/datastore/query.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ Query.prototype.order = function(order) {
6161
};
6262

6363
Query.prototype.groupBy = function(fieldNames) {
64+
var fields = util.arrayize(fieldNames);
6465
var q = util.extend(this, new Query());
65-
q.groupByVal = fieldNames;
66+
q.groupByVal = fields;
6667
return q;
6768
};
6869

0 commit comments

Comments
 (0)