Skip to content

Commit

Permalink
Update queues.md - fix JS logic
Browse files Browse the repository at this point in the history
  • Loading branch information
chihabhajji authored Sep 20, 2023
1 parent 7183349 commit 5e4525a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/techniques/queues.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export class AudioConsumer {
@Process()
async transcode(job: Job<unknown>) {
let progress = 0;
for (i = 0; i < 100; i++) {
for (let i = 0; i < 100; i++) {
await doSomething(job.data);
progress += 1;
await job.progress(progress);
Expand Down

0 comments on commit 5e4525a

Please sign in to comment.