Skip to content

Commit 35d5f0e

Browse files
authored
Add missing import for OnQueueActive in Snippet
A super minor change that adds the missing import in the code snippet example for the [Event Listeners](https://docs.nestjs.com/techniques/queues#event-listeners) of the Queues documentation page.
1 parent b917050 commit 35d5f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/queues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Bull generates a set of useful events when queue and/or job state changes occur.
269269
Event listeners must be declared within a <a href="techniques/queues#consumers">consumer</a> class (i.e., within a class decorated with the `@Processor()` decorator). To listen for an event, use one of the decorators in the table below to declare a handler for the event. For example, to listen to the event emitted when a job enters the active state in the `audio` queue, use the following construct:
270270

271271
```typescript
272-
import { Processor, Process } from '@nestjs/bull';
272+
import { Processor, Process, OnQueueActive } from '@nestjs/bull';
273273
import { Job } from 'bull';
274274

275275
@Processor('audio')

0 commit comments

Comments
 (0)