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:
RedlineTriad
2024-10-18 19:16:15 +02:00
parent b05e6f1f86
commit e02a02bb20
7 changed files with 20 additions and 10 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ import { DefaultEventsService } from '@backstage/plugin-events-node';
function makeCreateEnv(config: Config) {
// ...
const eventsService = DefaultEventsService.create({ logger: root });
const eventsService = DefaultEventsService.create({ logger: root, config });
// ...
return (plugin: string): PluginEnvironment => {
// ...