core: fix message category

pull/462/head
undefined 2 years ago
parent 700de4fc9d
commit 8bb268846e

@ -363,8 +363,6 @@ class HomeDomainCreateHandler extends Handler {
} }
class HomeMessagesHandler extends Handler { class HomeMessagesHandler extends Handler {
category = '#message';
async get() { async get() {
// TODO(iceboy): projection, pagination. // TODO(iceboy): projection, pagination.
const messages = await message.getByUser(this.user._id); const messages = await message.getByUser(this.user._id);
@ -421,6 +419,7 @@ class HomeMessagesHandler extends Handler {
} }
class HomeMessagesConnectionHandler extends ConnectionHandler { class HomeMessagesConnectionHandler extends ConnectionHandler {
category = '#message';
dispose: bus.Disposable; dispose: bus.Disposable;
async prepare() { async prepare() {

Loading…
Cancel
Save