Only use Accepted in Stop Transaction
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"content": {
"application/json": {
"example": {
- "status": "Success|Accepted"
+ "status": "Accepted"
}
}
}

MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -1858,7 +1858,7 @@ export default class ChargingStationService {
// Save Transaction
await TransactionStorage.saveTransaction(req.tenant, transaction);
// Ok: Execute it
- return await chargingStationClient.remoteStopTransaction({
+ return chargingStationClient.remoteStopTransaction({
transactionId: filteredRequest.args.transactionId
});
}

MODIFY
src/server/rest/v1/service/TransactionService.ts
src/server/rest/v1/service/TransactionService.ts
@@ -1107,7 +1107,7 @@ export default class TransactionService {
action, detailedMessages: { transaction }
});
}
- res.json(Constants.REST_RESPONSE_SUCCESS);
+ res.json({ status: 'Accepted' });
next();
}
}

Only use Accepted in Stop Transaction