pricing - minor change
MODIFY
src/server/rest/v1/service/PricingService.ts
src/server/rest/v1/service/PricingService.ts
@@ -32,7 +32,6 @@ export default class PricingService {
const filteredRequest = PricingValidator.getInstance().validatePricingModelResolve(req.query);
let pricingContext: PricingContext = null;
let pricingDefinitions: ResolvedPricingDefinition[] = [];
- if (Utils.isComponentActiveFromToken(req.user, TenantComponents.PRICING)) {
const pricingImpl = await PricingFactory.getPricingImpl(req.tenant);
if (pricingImpl) {
// Fetch the charging station data required for resolving the pricing context
@@ -43,7 +42,6 @@ export default class PricingService {
const pricingModel: ResolvedPricingModel = await pricingImpl.resolvePricingContext(pricingContext);
pricingDefinitions = pricingModel?.pricingDefinitions;
}
- }
res.json({
pricingContext,
pricingDefinitions

pricing - minor change