Fixed transaction id
MODIFY
src/assets/server/rest/v1/schemas/chargingstation/chargingstation.json
src/assets/server/rest/v1/schemas/chargingstation/chargingstation.json
"$ref": "common.json#/definitions/id"
},
"transactionId": {
- "$ref": "common.json#/definitions/id"
+ "$ref": "transaction.json#/definitions/id"
},
"stackLevel": {
"$ref": "#/definitions/stackLevel"
},
"startSchedule": {
"type": "string",
- "format": "date",
+ "format": "date-time",
"sanitize": "mongo"
},
"chargingRateUnit": {

MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -1343,13 +1343,7 @@ export default class ChargingStationService {
});
}
// Filter
- let filteredRequest;
- try {
- filteredRequest = ChargingStationValidator.getInstance().validateChargingStationsGetReq(req.query);
- } catch (e) {
- const a = 5;
- }
-
+ const filteredRequest = ChargingStationValidator.getInstance().validateChargingStationsGetReq(req.query);
// Check Users
let userProject: string[] = [];
if (Authorizations.canListUsers(req.user)) {

Fixed transaction id