refactor: remove getter on stationInfo properties
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / OCPPIncomingRequestService.ts
index fd4d8807daa155662a82ce2d1f55e7ae9e659695..28de507774a281aeeb0d32b4d17b1348b45d50c5 100644 (file)
@@ -89,7 +89,7 @@ export abstract class OCPPIncomingRequestService extends AsyncResource {
     schema: JSONSchemaType<T>,
     payload: T,
   ): boolean {
-    if (chargingStation.getOcppStrictCompliance() === false) {
+    if (chargingStation.stationInfo?.ocppStrictCompliance === false) {
       return true;
     }
     if (this.jsonValidateFunctions.has(commandName) === false) {