Skip to content

Commit b6e1227

Browse files
Merge pull request #3212 from fcanmekikoglu/patch-1
docs(queues): fix undeclared loop variable and progress method in example
2 parents c49af51 + d1b3bde commit b6e1227

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: content/techniques/queues.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ import { Job } from 'bullmq';
218218
export class AudioConsumer extends WorkerHost {
219219
async process(job: Job<any, any, string>): Promise<any> {
220220
let progress = 0;
221-
for (i = 0; i < 100; i++) {
221+
for (let i = 0; i < 100; i++) {
222222
await doSomething(job.data);
223223
progress += 1;
224-
await job.progress(progress);
224+
await job.updateProgress(progress);
225225
}
226226
return {};
227227
}

0 commit comments

Comments
 (0)