repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdb38ec
)
Fix type cast
author
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 21 Jan 2021 23:14:29 +0000
(
00:14
+0100)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 21 Jan 2021 23:14:29 +0000
(
00:14
+0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/start.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/start.ts
b/src/start.ts
index 1baea43212e7668446ec068a83d55fe1f8e0920f..41ae5d1e06d6aaafb8cd1760ccc34170f32f4f41 100644
(file)
--- a/
src/start.ts
+++ b/
src/start.ts
@@
-18,10
+18,10
@@
class Bootstrap {
try {
const nbStations = stationURL.numberOfStations ? stationURL.numberOfStations : 0;
for (let index = 1; index <= nbStations; index++) {
- const workerData = {
+ const workerData
: WorkerData
= {
index,
templateFile: stationURL.file
- }
as WorkerData
;
+ };
if (Configuration.useWorkerPool()) {
worker = new Wrk('./dist/charging-station/StationWorker.js', workerData);
worker.start().catch(() => { });