Skip to content

Commit dfe831c

Browse files
committed
fix: make groupBy as an array of strings of column names
Signed-off-by: Muhammad Aaqil <[email protected]>
1 parent 21a5af6 commit dfe831c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/sql.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,8 +1266,7 @@ SQLConnector.prototype.buildFields = function(model, data, excludeIds) {
12661266
* @returns a part of query for group by as a string
12671267
*/
12681268
SQLConnector.prototype.buildGroupBy = function(groupBy) {
1269-
const groupByColumns = Object.keys(groupBy);
1270-
return 'GROUP BY ' + groupByColumns.join(',');
1269+
return 'GROUP BY ' + groupBy.join(',');
12711270
};
12721271

12731272
/**

0 commit comments

Comments
 (0)