Fix module for in-mem-cache

This commit is contained in:
parthy007 2025-07-04 21:43:26 +05:30
parent a7ac694658
commit ff1e145359

View file

@ -3,12 +3,12 @@ import { DynamicModule } from '@nestjs/common';
export class InMemoryCacheModule extends SubModule {
static async register(configs?: { IS_GET_CONTEXT: boolean }): Promise<DynamicModule> {
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],
};
}