mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 18:46:19 +08:00
fix(server): avoid repeatly register providers (#5265)
This commit is contained in:
@@ -28,12 +28,10 @@ export class EventEmitter {
|
||||
}
|
||||
}
|
||||
|
||||
export const OnEvent = (
|
||||
export const OnEvent = RawOnEvent as (
|
||||
event: Event,
|
||||
opts?: Parameters<typeof RawOnEvent>[1]
|
||||
) => {
|
||||
return RawOnEvent(event, opts);
|
||||
};
|
||||
) => MethodDecorator;
|
||||
|
||||
@Global()
|
||||
@Module({
|
||||
|
||||
Reference in New Issue
Block a user