mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-24 18:41:52 +00:00
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:
parent
852096d1ab
commit
3bf54999f1
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class Data {
|
|||
}
|
||||
|
||||
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')
|
||||
worker.on('message', function (data: Data) {
|
||||
if (!data || !data.msg || !data.cacheKey) {
|
||||
|
|
Loading…
Reference in a new issue