fix: useEventBus by propagating config to DefaultEventsService
This setting was added by reading from an optional `config` argument. This was never passed, so `auto` was always assumed. https://github.com/backstage/backstage/pull/27227/files#diff-cffd40a187b4fc584f03c968517fbacc110bde6a467f2384bbd92b803d3db47eR374-R379 Signed-off-by: RedlineTriad <39059512+RedlineTriad@users.noreply.github.com>
This commit is contained in:
@@ -42,9 +42,10 @@ export const eventsServiceFactory = createServiceFactory({
|
||||
logger: coreServices.logger,
|
||||
lifecycle: coreServices.lifecycle,
|
||||
auth: coreServices.auth,
|
||||
config: coreServices.rootConfig,
|
||||
},
|
||||
async createRootContext({ rootLogger }) {
|
||||
return DefaultEventsService.create({ logger: rootLogger });
|
||||
async createRootContext({ rootLogger, config }) {
|
||||
return DefaultEventsService.create({ logger: rootLogger, config });
|
||||
},
|
||||
async factory(
|
||||
{ pluginMetadata, discovery, logger, lifecycle, auth },
|
||||
|
||||
Reference in New Issue
Block a user