repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UI Server: Add a unique request handler for procedure forwarded to charging
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ChargingStationWorkerBroadcastChannel.ts
diff --git
a/src/charging-station/ChargingStationWorkerBroadcastChannel.ts
b/src/charging-station/ChargingStationWorkerBroadcastChannel.ts
index 154e1afb14bbb8631fdb570c3a95c2888e4516f2..a67b9423649b1e0f97003bcf909bc67ff6b6e319 100644
(file)
--- a/
src/charging-station/ChargingStationWorkerBroadcastChannel.ts
+++ b/
src/charging-station/ChargingStationWorkerBroadcastChannel.ts
@@
-146,7
+146,6
@@
export default class ChargingStationWorkerBroadcastChannel extends WorkerBroadca
);
return;
}
);
return;
}
-
let responsePayload: BroadcastChannelResponsePayload;
let commandResponse: CommandResponse | void;
try {
let responsePayload: BroadcastChannelResponsePayload;
let commandResponse: CommandResponse | void;
try {
@@
-157,19
+156,19
@@
export default class ChargingStationWorkerBroadcastChannel extends WorkerBroadca
status: ResponseStatus.SUCCESS,
};
} else {
status: ResponseStatus.SUCCESS,
};
} else {
- const
r
esponseStatus = this.commandResponseToResponseStatus(
+ const
commandR
esponseStatus = this.commandResponseToResponseStatus(
command,
commandResponse as CommandResponse
);
command,
commandResponse as CommandResponse
);
- if (
r
esponseStatus === ResponseStatus.SUCCESS) {
+ if (
commandR
esponseStatus === ResponseStatus.SUCCESS) {
responsePayload = {
hashId: this.chargingStation.stationInfo.hashId,
responsePayload = {
hashId: this.chargingStation.stationInfo.hashId,
- status:
r
esponseStatus,
+ status:
commandR
esponseStatus,
};
} else {
responsePayload = {
hashId: this.chargingStation.stationInfo.hashId,
};
} else {
responsePayload = {
hashId: this.chargingStation.stationInfo.hashId,
- status:
r
esponseStatus,
+ status:
commandR
esponseStatus,
command,
requestPayload,
commandResponse: commandResponse as CommandResponse,
command,
requestPayload,
commandResponse: commandResponse as CommandResponse,