chore: extend root eslint config in twenty-server (#5101)
Reopening @thaisguigon work from https://github.com/twentyhq/twenty/pull/4781 --------- Co-authored-by: Thaïs Guigon <guigon.thais@gmail.com>
This commit is contained in:
@ -33,18 +33,19 @@ export class MessageQueueModule {
|
||||
const config = await options.useFactory(...args);
|
||||
|
||||
switch (config.type) {
|
||||
case MessageQueueDriverType.PgBoss:
|
||||
case MessageQueueDriverType.PgBoss: {
|
||||
const boss = new PgBossDriver(config.options);
|
||||
|
||||
await boss.init();
|
||||
|
||||
return boss;
|
||||
|
||||
case MessageQueueDriverType.BullMQ:
|
||||
}
|
||||
case MessageQueueDriverType.BullMQ: {
|
||||
return new BullMQDriver(config.options);
|
||||
|
||||
default:
|
||||
}
|
||||
default: {
|
||||
return new SyncDriver(JobsModule.moduleRef);
|
||||
}
|
||||
}
|
||||
},
|
||||
inject: options.inject || [],
|
||||
|
||||
Reference in New Issue
Block a user