Skip to content

Commit

Permalink
fix: change option name to match ts declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyBerko authored and manast committed Apr 28, 2023
1 parent 11331b7 commit 909a07e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PATTERNS.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ myQueue.add({ foo: 'bar' }, {
attempts: 10,
backoff: {
type: 'binaryExponential',
options: {
strategyOptions: {
delay: 500,
truncate: 5
}
Expand Down
1 change: 1 addition & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ await queue.add({}, { jobId: 'example' }) // Will not be created, conflicts with
interface BackoffOpts {
type: string; // Backoff type, which can be either `fixed` or `exponential`. A custom backoff strategy can also be specified in `backoffStrategies` on the queue settings.
delay: number; // Backoff delay, in milliseconds.
strategyOptions?: any; // Options for custom strategies
}
```

Expand Down

0 comments on commit 909a07e

Please sign in to comment.