From 45df3874f855f883ba8b56238973966b455555eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 1 Oct 2022 20:04:56 +0200 Subject: [PATCH] ATG: initializeConnectorStatus -> setConnectorStatus MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/AutomaticTransactionGenerator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charging-station/AutomaticTransactionGenerator.ts b/src/charging-station/AutomaticTransactionGenerator.ts index fb04d709..46c595f9 100644 --- a/src/charging-station/AutomaticTransactionGenerator.ts +++ b/src/charging-station/AutomaticTransactionGenerator.ts @@ -138,7 +138,7 @@ export default class AutomaticTransactionGenerator extends AsyncResource { } private async internalStartConnector(connectorId: number): Promise { - this.initializeConnectorStatus(connectorId); + this.setConnectorStatus(connectorId); this.connectorsStatus.get(connectorId).start = true; logger.info( this.logPrefix(connectorId) + @@ -252,7 +252,7 @@ export default class AutomaticTransactionGenerator extends AsyncResource { ); } - private initializeConnectorStatus(connectorId: number): void { + private setConnectorStatus(connectorId: number): void { this.connectorsStatus.get(connectorId).authorizeRequests = this?.connectorsStatus.get(connectorId)?.authorizeRequests ?? 0; this.connectorsStatus.get(connectorId).acceptedAuthorizeRequests = -- 2.34.1