Skip to content

Commit

Permalink
fix(worker): make token optional in processor function fixes #490
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Apr 22, 2021
1 parent 1b06de3 commit 3940bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interfaces/worker-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { AdvancedOptions, QueueBaseOptions, RateLimiterOptions } from './';
*/
export type Processor<T = any, R = any, N extends string = string> = (
job: Job<T, R, N>,
token: string,
token?: string,
) => Promise<R>;

export interface WorkerOptions extends QueueBaseOptions {
Expand Down

0 comments on commit 3940bd7

Please sign in to comment.