bookbrainz/bookbrainz-site

View on GitHub
src/server/routes/statistics.js

Summary

Maintainability
A
1 hr
Test Coverage

Function getLast30DaysEntities has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function getLast30DaysEntities(orm) {
    try {
        const entityModels = commonUtils.getEntityModels(orm);
        const countPromises = Object.keys(entityModels).map(async (modelName) => {
            const model = entityModels[modelName];
Severity: Minor
Found in src/server/routes/statistics.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status