From bb7a70aadd1914ea25e4e88b080ea3e4ea25f0e7 Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Mon, 21 Jul 2014 11:05:55 -0700 Subject: [PATCH] datastore: Arrayize input field names. --- lib/datastore/query.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/datastore/query.js b/lib/datastore/query.js index ef5947e17af..01230d31484 100644 --- a/lib/datastore/query.js +++ b/lib/datastore/query.js @@ -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; };