From 0a5ff3fdb2a592277164a5f734b4b60ae917f84f Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 20 Mar 2026 11:53:42 +0700 Subject: [PATCH] 260320:1153 Refactor Overrall #04 failed to start due to missing CACHE_MANAGER dependency in UserModule --- backend/src/modules/user/user.module.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/modules/user/user.module.ts b/backend/src/modules/user/user.module.ts index c5f12e1..fe0cd06 100644 --- a/backend/src/modules/user/user.module.ts +++ b/backend/src/modules/user/user.module.ts @@ -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: [