From 902250529d3aab51cfdb21ba467fc082caf0c765 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 22 Jan 2021 00:14:29 +0100 Subject: [PATCH] Fix type cast MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/start.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/start.ts b/src/start.ts index 1baea432..41ae5d1e 100644 --- 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(() => { }); -- 2.34.1