260320:1210 Refactor Overrall #06 failed to start due to missing CACHE_MANAGER dependency.
Build and Deploy / deploy (push) Successful in 10m42s
Build and Deploy / deploy (push) Successful in 10m42s
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { CacheModule } from '@nestjs/cache-manager';
|
||||
|
||||
import { UserService } from './user.service';
|
||||
import { UserController } from './user.controller';
|
||||
@@ -27,10 +26,7 @@ import { Permission } from './entities/permission.entity';
|
||||
Role,
|
||||
Permission,
|
||||
]),
|
||||
// Add CacheModule for CACHE_MANAGER provider
|
||||
CacheModule.register({
|
||||
isGlobal: false, // Keep it local to this module
|
||||
}),
|
||||
// CacheModule is now global (from AppModule)
|
||||
],
|
||||
controllers: [UserController],
|
||||
providers: [
|
||||
|
||||
Reference in New Issue
Block a user