Skip to content

Commit 5847a57

Browse files
authored
Fix README for handling bulk push errors
1 parent 8e81117 commit 5847a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const faktory = require("faktory-worker");
5050
let rejected = await client.pushBulk([job1, job2]);
5151

5252
// rejected is a dictionary of [jid]: { payload, reason } if any failed to enqueue
53-
for (const [jid, { payload, reason }] of Object.entries(obj)) {
53+
for (const [jid, { payload, reason }] of Object.entries(rejected)) {
5454
console.error(`Faild to push job for image ${payload.args[0].id}`);
5555
}
5656

0 commit comments

Comments
 (0)