Removed unused params
MODIFY
src/server/ocpp/services/OCPPService.ts
src/server/ocpp/services/OCPPService.ts
@@ -461,7 +461,7 @@ export default class OCPPService {
// Set header
this.enrichOCPPRequest(chargingStation, stopTransaction, false);
// Bypass Stop Transaction?
- if (await this.bypassStopTransaction(tenant, chargingStation, headers, stopTransaction)) {
+ if (await this.bypassStopTransaction(tenant, chargingStation, stopTransaction)) {
return {
idTagInfo: {
status: OCPPAuthorizationStatus.ACCEPTED
@@ -1834,7 +1834,7 @@ export default class OCPPService {
}
private async bypassStopTransaction(tenant: Tenant, chargingStation: ChargingStation,
- headers: OCPPHeader, stopTransaction: OCPPStopTransactionRequestExtended): Promise<boolean> {
+ stopTransaction: OCPPStopTransactionRequestExtended): Promise<boolean> {
// Ignore it (DELTA bug)?
if (stopTransaction.transactionId === 0) {
await Logging.logWarning({
@@ -1866,7 +1866,7 @@ export default class OCPPService {
if (!transaction) {
// Abort the ongoing Transaction
if (meterValues.transactionId) {
- await this.abortOngoingTransactionInMeterValues(tenant, chargingStation, headers, meterValues);
+ await this.abortOngoingTransactionInMeterValues(tenant, chargingStation, meterValues);
}
// Unkown Transaction
throw new BackendError({
@@ -1880,7 +1880,7 @@ export default class OCPPService {
// Transaction finished
if (transaction?.stop) {
// Abort the ongoing Transaction
- await this.abortOngoingTransactionInMeterValues(tenant, chargingStation, headers, meterValues);
+ await this.abortOngoingTransactionInMeterValues(tenant, chargingStation, meterValues);
throw new BackendError({
...LoggingHelper.getChargingStationProperties(chargingStation),
module: MODULE_NAME, method: 'getTransactionFromMeterValues',
@@ -1903,7 +1903,7 @@ export default class OCPPService {
return transaction;
}
- private async abortOngoingTransactionInMeterValues(tenant: Tenant, chargingStation: ChargingStation, headers: OCPPHeader, meterValues: OCPPMeterValuesRequest) {
+ private async abortOngoingTransactionInMeterValues(tenant: Tenant, chargingStation: ChargingStation, meterValues: OCPPMeterValuesRequest) {
// Get the OCPP Client
const chargingStationClient = await ChargingStationClientFactory.getChargingStationClient(tenant, chargingStation);
if (!chargingStationClient) {

Removed unused params