server/lib/device/device.calculcateAggregateChildProcess.js
Function calculateAggregateChildProcess
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function calculateAggregateChildProcess(params) {
const {
AGGREGATE_STATES_PER_INTERVAL,
DEVICE_FEATURE_STATE_AGGREGATE_TYPES,
LAST_AGGREGATE_ATTRIBUTES,