Skip to content

Commit

Permalink
fix: [ERR_MISSING_ARGS]: The "message" argument must be specified whe…
Browse files Browse the repository at this point in the history
…n using --useChildProcesses (#1385)

Co-authored-by: dnalborczyk <dnalborczyk@gmail.com>
  • Loading branch information
khanguyen88 and dnalborczyk authored Aug 17, 2022
1 parent d213921 commit 91ae1e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class ChildProcessRunner {
rej(data.error)
return
}
res(data)
res(data.result)
})
})
} catch (err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ process.on('message', async (messageData) => {
const result = await inProcessRunner.run(event, context)

// TODO check serializeability (contains function, symbol etc)
process.send(result)
process.send({ result })
})

0 comments on commit 91ae1e1

Please sign in to comment.