diff --git a/server/src/modules/inMemoryCache/module.ts b/server/src/modules/inMemoryCache/module.ts index bfb29594aa..69b897ee61 100644 --- a/server/src/modules/inMemoryCache/module.ts +++ b/server/src/modules/inMemoryCache/module.ts @@ -3,12 +3,12 @@ import { DynamicModule } from '@nestjs/common'; export class InMemoryCacheModule extends SubModule { static async register(configs?: { IS_GET_CONTEXT: boolean }): Promise { - const { InMemoryCacheService } = await this.getProviders(configs, 'inMemoryCache', ['in-memory-cache.service.ts']); + const { InMemoryCacheService } = await this.getProviders(configs, 'inMemoryCache', ['in-memory-cache.service']); return { - module: InMemoryCacheService, + module: InMemoryCacheModule, controllers: [], - providers: [], + providers: [InMemoryCacheService], exports: [InMemoryCacheService], }; }