You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you pay attention to this part of the code. In the repeat option, it is forcing to use 'pattern' keyword. But actually it should be 'cron' keyword.
Is there an existing issue for this?
Current behavior
if (opts.cron && opts.every) {
throw new Error(
'Both .cron and .every options are defined for this repeatable job'
);
}
Minimum reproduction code
https://www.npmjs.com/package/bull
Steps to reproduce
No response
Expected behavior
if (opts.pattern && opts.every) {
throw new Error(
'Both .cron and .every options are defined for this repeatable job'
);
}
Package version
10.0.1
Bull version
No response
NestJS version
10
Node.js version
20.10.0
In which operating systems have you tested?
Other
bull is expecting cron field in the options. But in nestjs/bull, pattern is being used instead of cron
The text was updated successfully, but these errors were encountered: