Get all the consumptions
MODIFY
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIMapping.ts
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIMapping.ts
@@ -591,7 +591,7 @@ export default class OCPIMapping {
return [];
}
const chargingPeriods: OCPIChargingPeriod[] = [];
- const consumptions = await ConsumptionStorage.getOptimizedTransactionConsumptions(tenantID, { transactionId: transaction.id });
+ const consumptions = await ConsumptionStorage.getTransactionConsumptions(tenantID, { transactionId: transaction.id });
if (consumptions) {
for (const consumption of consumptions) {
const chargingPeriod = this.buildChargingPeriod(consumption);

Get all the consumptions