src/server/routes/statistics.js
Function getLast30DaysEntities
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function getLast30DaysEntities(orm) {
try {
const entityModels = commonUtils.getEntityModels(orm);
const countPromises = Object.keys(entityModels).map(async (modelName) => {
const model = entityModels[modelName];