ForestAdmin/forest-express-mongoose

View on GitHub
src/services/pie-stat-getter.js

Summary

Maintainability
A
1 hr
Test Coverage
A
96%

Function perform has 35 lines of code (exceeds 25 allowed). Consider refactoring.
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);
Severity: Minor
Found in src/services/pie-stat-getter.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status