Force with Site / Site Area when getting a charging station
MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -918,10 +918,16 @@ export default class ChargingStationService {
});
}
// Check and Get Charging Station
+ // To uncomment when the mobile app will be released with the handling of these params
+ // const chargingStation = await UtilsService.checkAndGetChargingStationAuthorization(
+ // req.tenant, req.user, filteredRequest.ID, action, null, {
+ // withSite: filteredRequest.WithSite,
+ // withSiteArea: filteredRequest.WithSiteArea,
+ // }, true);
const chargingStation = await UtilsService.checkAndGetChargingStationAuthorization(
req.tenant, req.user, filteredRequest.ID, action, null, {
- withSite: filteredRequest.WithSite,
- withSiteArea: filteredRequest.WithSiteArea,
+ withSite: true,
+ withSiteArea: true,
}, true);
res.json(chargingStation);
next();

Force with Site / Site Area when getting a charging station