src/services/pie-stat-getter.js
Function perform
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async perform() {
const params = await getScopedParams(this._params, this._model, this._user);
const field = _.find(this._schema.fields, { field: params.groupByFieldName });
const queryBuilder = new QueryBuilder(this._model, params, this._opts);
const populateGroupByField = this._getReference(params.groupByFieldName);