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