docs: refine code comments
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 5 Jun 2024 18:58:17 +0000 (20:58 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 5 Jun 2024 18:58:17 +0000 (20:58 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/charging-station/ocpp/1.6/OCPP16RequestService.ts
src/charging-station/ocpp/2.0/OCPP20RequestService.ts

index b9643469a791831937d9774e4ef0b9fb68abacbf..1f3807ccdbd086660ab077d501562477cd91d3aa 100644 (file)
@@ -172,7 +172,7 @@ export class OCPP16RequestService extends OCPPRequestService {
   ): Promise<ResponseType> {
     // FIXME?: add sanity checks on charging station availability, connector availability, connector status, etc.
     if (OCPP16ServiceUtils.isRequestCommandSupported(chargingStation, commandName)) {
-      // Post request actions hook
+      // Pre request actions hook
       switch (commandName) {
         case OCPP16RequestCommand.START_TRANSACTION:
           await OCPP16ServiceUtils.sendAndSetConnectorStatus(
index c9c4b17b24d6060e7ac102e9ab70664f97c2d13a..1f1ed478f5679a6b2a063ffee98f40f2153979fd 100644 (file)
@@ -80,7 +80,7 @@ export class OCPP20RequestService extends OCPPRequestService {
   ): Promise<ResponseType> {
     // FIXME?: add sanity checks on charging station availability, connector availability, connector status, etc.
     if (OCPP20ServiceUtils.isRequestCommandSupported(chargingStation, commandName)) {
-      // TODO: post request actions hook
+      // TODO: pre request actions hook
       return (await this.sendMessage(
         chargingStation,
         generateUUID(),