Fixed ended not being shown in response
MODIFY
src/storage/mongodb/ConsumptionStorage.ts
src/storage/mongodb/ConsumptionStorage.ts
@@ -339,7 +339,7 @@ export default class ConsumptionStorage {
// Convert instant watts / amps to absolute value
aggregation.push({
$addFields: {
- endedAt: '$allInOne.startedAt'
+ endedAt: '$startedAt'
}
});
aggregation.push({

Fixed ended not being shown in response