mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
refactor(server): config system (#11081)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { OnOptions } from 'eventemitter2';
|
||||
|
||||
import { PushMetadata, sliceMetadata } from '../nestjs';
|
||||
import { PushMetadata, sliceMetadata } from '../nestjs/decorator';
|
||||
|
||||
declare global {
|
||||
/**
|
||||
|
||||
@@ -6,7 +6,10 @@ import { EventHandlerScanner } from './scanner';
|
||||
|
||||
const EmitProvider = {
|
||||
provide: EventEmitter2,
|
||||
useFactory: () => new EventEmitter2(),
|
||||
useFactory: () =>
|
||||
new EventEmitter2({
|
||||
maxListeners: 100,
|
||||
}),
|
||||
};
|
||||
|
||||
@Global()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { once } from 'lodash-es';
|
||||
|
||||
import { ModuleScanner } from '../nestjs';
|
||||
import { ModuleScanner } from '../nestjs/scanner';
|
||||
import {
|
||||
type EventName,
|
||||
type EventOptions,
|
||||
|
||||
Reference in New Issue
Block a user