260320:1153 Refactor Overrall #04 failed to start due to missing CACHE_MANAGER dependency in UserModule
Build and Deploy / deploy (push) Failing after 5m58s

This commit is contained in:
admin
2026-03-20 11:53:42 +07:00
parent 9166fa13be
commit 0a5ff3fdb2
+5
View File
@@ -3,6 +3,7 @@
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';
@@ -26,6 +27,10 @@ import { Permission } from './entities/permission.entity';
Role,
Permission,
]),
// Add CacheModule for CACHE_MANAGER provider
CacheModule.register({
isGlobal: false, // Keep it local to this module
}),
],
controllers: [UserController],
providers: [