- async startTransaction(connectorId: number): Promise<unknown> {
- if (this._chargingStation.hasAuthorizedTags()) {
- const tagId = this._chargingStation.getRandomTagId();
- logger.info(this._logPrefix(connectorId) + ' start transaction for tagID ' + tagId);
- return this._chargingStation.sendStartTransaction(connectorId, tagId);
+ // eslint-disable-next-line consistent-this
+ async startTransaction(connectorId: number, self: AutomaticTransactionGenerator): Promise<StartTransactionResponse> {
+ if (self._chargingStation.hasAuthorizedTags()) {
+ const tagId = self._chargingStation.getRandomTagId();
+ logger.info(self._logPrefix(connectorId) + ' start transaction for tagID ' + tagId);
+ return await self._chargingStation.sendStartTransaction(connectorId, tagId);