models/revision.ts: Use .js extension to load dump worker.

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-04-13 16:21:00 +02:00
parent 73d4023155
commit c7478157e2
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

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