feat(core): add notification list (#10480)
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
import { createEvent } from '@toeverything/infra';
|
||||
|
||||
import type { Server } from '../entities/server';
|
||||
|
||||
export const ServerInitialized = createEvent<Server>('ServerInitialized');
|
||||
@@ -4,7 +4,6 @@ export type { AuthAccountInfo } from './entities/session';
|
||||
export { AccountChanged } from './events/account-changed';
|
||||
export { AccountLoggedIn } from './events/account-logged-in';
|
||||
export { AccountLoggedOut } from './events/account-logged-out';
|
||||
export { ServerInitialized } from './events/server-initialized';
|
||||
export { AuthProvider } from './provider/auth';
|
||||
export { ValidatorProvider } from './provider/validator';
|
||||
export { ServerScope } from './scopes/server';
|
||||
|
||||
@@ -4,7 +4,6 @@ import { nanoid } from 'nanoid';
|
||||
import { Observable, switchMap } from 'rxjs';
|
||||
|
||||
import { Server } from '../entities/server';
|
||||
import { ServerInitialized } from '../events/server-initialized';
|
||||
import { ServerStarted } from '../events/server-started';
|
||||
import type { ServerConfigStore } from '../stores/server-config';
|
||||
import type { ServerListStore } from '../stores/server-list';
|
||||
@@ -30,7 +29,6 @@ export class ServersService extends Service {
|
||||
serverMetadata: metadata,
|
||||
});
|
||||
server.revalidateConfig();
|
||||
this.eventBus.emit(ServerInitialized, server);
|
||||
server.scope.eventBus.emit(ServerStarted, server);
|
||||
const ref = this.serverPool.put(metadata.id, server);
|
||||
return ref;
|
||||
|
||||
Reference in New Issue
Block a user