Soft Stop transaction only for local Transactions
Log in Debug when no action has been performed
Fixed typo
MODIFY
src/scheduler/tasks/CloseTransactionsInProgressTask.ts
src/scheduler/tasks/CloseTransactionsInProgressTask.ts
@@ -28,7 +28,7 @@ export default class CloseTransactionsInProgressTask extends TenantSchedulerTask
const ocppService = new OCPPService(Configuration.getChargingStationConfig());
// Get opened transactions to close
const transactions = await TransactionStorage.getTransactions(
- tenant, { transactionsToClose: true }, Constants.DB_PARAMS_MAX_LIMIT);
+ tenant, { transactionsToClose: true, issuer: true }, Constants.DB_PARAMS_MAX_LIMIT);
for (const transaction of transactions.result) {
try {
// Soft stop transaction

MODIFY
src/server/ocpi/service/emsp/v2.1.1/EMSPSessionsService.ts
src/server/ocpi/service/emsp/v2.1.1/EMSPSessionsService.ts
@@ -70,7 +70,7 @@ export default class EMSPSessionsService {
module: MODULE_NAME, method: 'handlePutSession', action,
errorCode: StatusCodes.BAD_REQUEST,
ocpiError: OCPIStatusCode.CODE_2001_INVALID_PARAMETER_ERROR,
- message: `Transaction ID '${session.id}' mismatch in URL`,
+ message: `OCPI Session ID '${session.id}' mismatch in URL`,
detailedMessages: { sessionID, session }
});
}

MODIFY
src/types/Transaction.ts
src/types/Transaction.ts
import { Car, CarCatalog } from './Car';
-import { ChargePointStatus, OCPP15TransactionData, OCPPMeterValue } from './ocpp/OCPPServer';
import Consumption, { AbstractCurrentConsumption } from './Consumption';
+import { OCPP15TransactionData, OCPPMeterValue } from './ocpp/OCPPServer';
import ChargingStation from '../types/ChargingStation';
import Company from './Company';

MODIFY
src/utils/Logging.ts
src/utils/Logging.ts
@@ -230,7 +230,7 @@ export default class Logging {
});
Utils.isDevelopmentEnv() && Logging.logConsoleError(messageError);
} else {
- await Logging.logInfo({
+ await Logging.logDebug({
tenantID: tenantID,
user,
action, module, method,
@@ -278,7 +278,7 @@ export default class Logging {
});
Utils.isDevelopmentEnv() && Logging.logConsoleError(messageError);
} else {
- await Logging.logInfo({
+ await Logging.logDebug({
tenantID: tenantID,
action, module, method,
message: messageNoSuccessNoError,

Soft Stop transaction only for local Transactions
Log in Debug when no action has been performed
Fixed typo