Display Site Area max limitation and smart charging enabled in the list
MODIFY
src/server/rest/service/SiteAreaService.ts
src/server/rest/service/SiteAreaService.ts
@@ -162,7 +162,7 @@ export default class SiteAreaService {
siteIDs: Authorizations.getAuthorizedSiteIDs(req.user, filteredRequest.SiteID ? filteredRequest.SiteID.split('|') : null),
},
{ limit: filteredRequest.Limit, skip: filteredRequest.Skip, sort: filteredRequest.Sort, onlyRecordCount: filteredRequest.OnlyRecordCount },
- ['id', 'name', 'siteID', 'address.coordinates', 'address.city', 'address.country', 'site.id', 'site.name', 'issuer']
+ ['id', 'name', 'siteID', 'maximumPower', 'smartCharging', 'address.coordinates', 'address.city', 'address.country', 'site.id', 'site.name', 'issuer']
);
// Filter
SiteAreaSecurity.filterSiteAreasResponse(siteAreas, req.user);

MODIFY
src/server/rest/service/security/SiteAreaSecurity.ts
src/server/rest/service/security/SiteAreaSecurity.ts
@@ -115,9 +115,7 @@ export default class SiteAreaSecurity {
return null;
}
for (const siteArea of siteAreas.result) {
- // Filter
const filteredSiteArea = SiteAreaSecurity.filterSiteAreaResponse(siteArea, loggedUser);
- // Add
if (filteredSiteArea) {
filteredSiteAreas.push(filteredSiteArea);
}

Display Site Area max limitation and smart charging enabled in the list