checkAndApplyChargingStationTemplate - better exception handling to avoid PM2 alerts
MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -85,7 +85,7 @@ export default class ChargingStationService {
// Update
await ChargingStationStorage.saveChargingStation(req.tenant, chargingStation);
// Check and Apply Charging Station templates
- void ChargingStationService.checkAndApplyChargingStationTemplate(
+ await ChargingStationService.checkAndApplyChargingStationTemplate(
action, req.tenant, chargingStation, req.user, resetAndApplyTemplate);
await Logging.logInfo({
tenantID: req.tenant.id,

checkAndApplyChargingStationTemplate - better exception handling to avoid PM2 alerts