mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 17:55:17 -04:00
models/revision.ts: Use .js extension to load dump worker.
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
73d4023155
commit
c7478157e2
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class Data {
|
||||||
}
|
}
|
||||||
|
|
||||||
function createDmpWorker (): ChildProcess {
|
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')
|
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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue