-
-
Notifications
You must be signed in to change notification settings - Fork 465
Description
I would like to set guards/ visibility per queue when using NestJs. What happens is, BullboardFeatureModule instantiate the adapter with new queueOption.adapter(...) inside its Module onModuleInit which prevents me from dynamically creating this module and setting a custom visibility.
The options passed to the adaptor do not expect visibility function nor the type used by BullBoardQueueOptions accepts a previously created adapter instance.
Suggestions:
passing setVisibility function in QueueAdapterOptions or BullboardQueueOptions
Accepting adapter instances on BullMQAdapter, althought defeats the purpose of DI used by Nest
Export the adapter with ModuleRef to offer access later durin module creation;
Expand createBullBoard return type to be able to retrieve queue/adaptors from getQueueApi