Remove file extension from dmpWorker path

Node automatically loads the .js or .ts file depending on how it is run.

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-05-22 14:14:02 +02:00
parent 852096d1ab
commit 3bf54999f1
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -24,7 +24,7 @@ class Data {
} }
function createDmpWorker (): ChildProcess { function createDmpWorker (): ChildProcess {
const worker = childProcess.fork(path.resolve(__dirname, '../workers/dmpWorker.js'), ['ignore']) const worker = childProcess.fork(path.resolve(__dirname, '../workers/dmpWorker'), ['ignore'])
logger.debug('dmp worker process started') logger.debug('dmp worker process started')
worker.on('message', function (data: Data) { worker.on('message', function (data: Data) {
if (!data || !data.msg || !data.cacheKey) { if (!data || !data.msg || !data.cacheKey) {