Skip to content

Commit f909550

Browse files
committed
fix: removed @ladjs/bull in favor of @ladjs/cron
1 parent a3b31b5 commit f909550

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

index.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ class API {
3535
constructor(config) {
3636
this.config = {
3737
...sharedConfig('API'),
38-
// <https://github.com/ladjs/bull>
39-
// this is an instance of bull passed to context
40-
// so users can use it in routes, e.g. `ctx.bull`
41-
bull: false,
4238
...config
4339
};
4440

@@ -85,10 +81,6 @@ class API {
8581
// allow middleware to access redis client
8682
app.context.client = client;
8783

88-
// set bull to be shared throughout app context
89-
// (very useful for not creating additional connections)
90-
if (this.config.bull) app.context.bull = this.config.bull;
91-
9284
// only trust proxy if enabled
9385
app.proxy = boolean(process.env.TRUST_PROXY);
9486

0 commit comments

Comments
 (0)