diff --git a/lib/AggregateFunctions.js b/lib/AggregateFunctions.js index 4ce0ce75..b6d08631 100644 --- a/lib/AggregateFunctions.js +++ b/lib/AggregateFunctions.js @@ -93,9 +93,6 @@ function AggregateFunctions(opts) { if (aggregates[aggregates.length - 1].length === 0) { aggregates.length -= 1; } - if (aggregates.length === 0) { - throw new ORMError('PARAM_MISMATCH', "Missing aggregate functions"); - } var query = opts.driver.getQuery().select().from(opts.table).select(opts.propertyList); var i, j;