DEV: `message-bus:main` -> `service:message-bus` (#17748)

The former has been deprecated
This commit is contained in:
Alan Guo Xiang Tan 2022-08-02 13:25:51 +08:00 committed by GitHub
parent f204538f7c
commit 0d5bded434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import { withPluginApi } from "discourse/lib/plugin-api";
const PLUGIN_ID = "new-user-narrative";
function initialize(api) {
const messageBus = api.container.lookup("message-bus:main");
const messageBus = api.container.lookup("service:message-bus");
const currentUser = api.getCurrentUser();
const appEvents = api.container.lookup("service:app-events");