Renamed param
MODIFY
src/integration/smart-charging/sap-smart-charging
src/integration/smart-charging/sap-smart-charging
-Subproject commit f31dce3029eee955e28130451383fa5da204bcd8
+Subproject commit 934c0462523782c8c468b23b48a1ee0f1d816304

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
@@ -159,7 +159,7 @@ export default class OCPIMapping {
// Result
const ocpiLocationsResult: DataResult<OCPILocation> = { count: 0, result: [] };
// Get all sites
- const sites = await SiteStorage.getSites(tenant.id, { issuer: true, withChargers: true }, { limit, skip });
+ const sites = await SiteStorage.getSites(tenant.id, { issuer: true, withChargingStations: true }, { limit, skip });
// Convert Sites to Locations
for (const site of sites.result) {
ocpiLocationsResult.result.push(await OCPIMapping.convertSite2Location(tenant, site, options));

MODIFY
src/storage/mongodb/SiteStorage.ts
src/storage/mongodb/SiteStorage.ts
@@ -297,7 +297,7 @@ export default class SiteStorage {
params: {
search?: string; companyIDs?: string[]; withAutoUserAssignment?: boolean; siteIDs?: string[];
userID?: string; excludeSitesOfUserID?: boolean; issuer?: boolean;
- withAvailableChargers?: boolean; withChargers?: boolean; withCompany?: boolean;
+ withAvailableChargers?: boolean; withChargingStations?: boolean; withCompany?: boolean;
} = {},
dbParams: DbParams, projectFields?: string[]): Promise<DataResult<Site>> {
// Debug
@@ -413,12 +413,12 @@ export default class SiteStorage {
if (sitesMDB && sitesMDB.length > 0) {
// Create
for (const siteMDB of sitesMDB) {
- if (params.withChargers || params.withAvailableChargers) {
+ if (params.withChargingStations || params.withAvailableChargers) {
// Get the chargers
const chargingStations = await ChargingStationStorage.getChargingStations(tenantID,
{ siteIDs: [siteMDB.id], includeDeleted: false }, Constants.DB_PARAMS_MAX_LIMIT);
// Skip site with no chargers if asked
- if (params.withChargers && chargingStations.count === 0) {
+ if (params.withChargingStations && chargingStations.count === 0) {
continue;
}
// Add counts of Available/Occupied Chargers/Connectors

Renamed param