Fixed Sites / Site Area connectors stats renaming
MODIFY
src/authorization/AuthorizationsDefinition.ts
src/authorization/AuthorizationsDefinition.ts
@@ -241,7 +241,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'address.department', 'address.region', 'address.country',
'address.coordinates', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
'autoUserSiteAssignment', 'distanceMeters', 'public', 'createdOn', 'lastChangedOn',
- 'createdBy.name', 'createdBy.firstName', 'lastChangedBy.name', 'lastChangedBy.firstName', 'connectors'
+ 'createdBy.name', 'createdBy.firstName', 'lastChangedBy.name', 'lastChangedBy.firstName', 'connectorStats'
]
},
{
@@ -290,7 +290,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'address.address1', 'address.address2', 'address.postalCode', 'address.city',
'address.department', 'address.region', 'address.country',
'address.coordinates', 'site.id', 'site.name', 'site.public', 'parentSiteAreaID', 'parentSiteArea.name', 'issuer', 'distanceMeters',
- 'createdOn', 'createdBy.name', 'createdBy.firstName', 'lastChangedOn', 'lastChangedBy.name', 'lastChangedBy.firstName', 'connectors'
+ 'createdOn', 'createdBy.name', 'createdBy.firstName', 'lastChangedOn', 'lastChangedBy.name', 'lastChangedBy.firstName', 'connectorStats'
]
},
{
@@ -756,7 +756,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city',
'address.department', 'address.region', 'address.country',
'address.coordinates', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
- 'autoUserSiteAssignment', 'distanceMeters', 'public', 'createdOn', 'lastChangedOn', 'connectors'
+ 'autoUserSiteAssignment', 'distanceMeters', 'public', 'createdOn', 'lastChangedOn', 'connectorStats'
],
},
{
@@ -789,7 +789,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'address.address1', 'address.address2', 'address.postalCode', 'address.city',
'address.department', 'address.region', 'address.country',
'address.coordinates', 'site.id', 'site.name', 'parentSiteAreaID', 'parentSiteArea.name', 'issuer',
- 'distanceMeters', 'createdOn', 'lastChangedOn', 'connectors'
+ 'distanceMeters', 'createdOn', 'lastChangedOn', 'connectorStats'
],
},
{
@@ -1045,7 +1045,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city',
'address.department', 'address.region', 'address.country',
'address.coordinates', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
- 'autoUserSiteAssignment', 'distanceMeters', 'public', 'connectors'
+ 'autoUserSiteAssignment', 'distanceMeters', 'public', 'connectorStats'
]
},
{
@@ -1064,7 +1064,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'address.address1', 'address.address2', 'address.postalCode', 'address.city',
'address.department', 'address.region', 'address.country',
'address.coordinates', 'site.id', 'site.name', 'parentSiteAreaID', 'parentSiteArea.name', 'issuer',
- 'distanceMeters', 'connectors'
+ 'distanceMeters', 'connectorStats'
]
},
{

MODIFY
src/storage/mongodb/DatabaseUtils.ts
src/storage/mongodb/DatabaseUtils.ts
@@ -69,10 +69,10 @@ export default class DatabaseUtils {
DatabaseUtils.addConnectorStatusFields(aggregation);
// Group back Connectors
DatabaseUtils.groupBackToArray(aggregation, 'chargingStations.connectors', 'chargingStations.id',
- DatabaseUtils.getConnectorStatusAggregationFields(), 'connectors');
+ DatabaseUtils.getConnectorStatusAggregationFields(), 'connectorStats');
// Group back Charging Stations
DatabaseUtils.groupBackToArray(aggregation, 'chargingStations', 'id',
- DatabaseUtils.getConnectorStatusAggregationFields(), 'connectors');
+ DatabaseUtils.getConnectorStatusAggregationFields(), 'connectorStats');
}
public static addConnectorStatusFields(aggregation: any[]): void {

Fixed Sites / Site Area connectors stats renaming