mirror of
https://github.com/discourse/discourse.git
synced 2025-04-25 20:14:29 +08:00
DEV: message-bus:main
-> service:message-bus
(#17748)
The former has been deprecated
This commit is contained in:
parent
f204538f7c
commit
0d5bded434
@ -7,7 +7,7 @@ import { withPluginApi } from "discourse/lib/plugin-api";
|
|||||||
const PLUGIN_ID = "new-user-narrative";
|
const PLUGIN_ID = "new-user-narrative";
|
||||||
|
|
||||||
function initialize(api) {
|
function initialize(api) {
|
||||||
const messageBus = api.container.lookup("message-bus:main");
|
const messageBus = api.container.lookup("service:message-bus");
|
||||||
const currentUser = api.getCurrentUser();
|
const currentUser = api.getCurrentUser();
|
||||||
const appEvents = api.container.lookup("service:app-events");
|
const appEvents = api.container.lookup("service:app-events");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user