correction types definitions
MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -1909,8 +1909,6 @@ export default class ChargingStationService {
req.tenant, filteredRequest.args.transactionID, { withUser: true });
UtilsService.assertObjectExists(action, transaction, `Transaction ID '${filteredRequest.args.transactionID }' does not exist`,
MODULE_NAME, 'handleAction', req.user);
- // Add connector ID
- filteredRequest.args.connectorID = transaction.connectorId;
// Get default Tag
const tags = await TagStorage.getTags(req.tenant, { userIDs: [req.user.id], active: true }, Constants.DB_PARAMS_SINGLE_RECORD, ['id']);
if (!Utils.isEmptyArray(tags)) {

MODIFY
src/types/requests/HttpChargingStationRequest.ts
src/types/requests/HttpChargingStationRequest.ts
import { ChargePoint, ConnectorType, CurrentType, PhaseAssignmentToGrid, Voltage } from '../ChargingStation';
+import { ChargingRateUnitType } from '../ChargingProfile';
import HttpByIDRequest from './HttpByIDRequest';
import HttpDatabaseRequest from './HttpDatabaseRequest';
@@ -150,14 +151,14 @@ export interface HttpChargingStationStartTransactionRequest {
args: {
tagID?: string,
visualTagID?: string,
- connectorId: string
+ connectorId: number
}
}
export interface HttpChargingStationStopTransactionRequest {
chargingStationID: string,
args: {
- transactionID: string
+ transactionID: number
}
}
@@ -171,9 +172,9 @@ export interface HttpChargingStationCommandGetConfigurationRequest {
export interface HttpChargingStationGetCompositeScheduleRequest {
chargingStationID: string,
args: {
- connectorId: string,
+ connectorId: number,
duration: number,
- chargingRateUnit?: string
+ chargingRateUnit?: ChargingRateUnitType
}
}

correction types definitions