Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 650f973

Browse files
committed
fix: expected a length to be non-negative error
1 parent 747d7df commit 650f973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function sendJob(config) {
6060
// NOTE: Jobs _must_ have a unique ID as they are completely async and results
6161
// can arrive back in any order.
6262
// eslint-disable-next-line no-param-reassign
63-
config.emitKey = cryptoRandomString(10)
63+
config.emitKey = cryptoRandomString({ length: 10 })
6464

6565
return new Promise((resolve, reject) => {
6666
// All worker errors are caught and re-emitted along with their associated

0 commit comments

Comments
 (0)