Skip to content

Commit

Permalink
fix: install @nestjs/cache-manager
Browse files Browse the repository at this point in the history
@nestjs/common에 있던 cache-manager 모듈이 버전 업데이트에서 분리되어 설치해주었습니다.
deprecated 된 CacheModule을 사용할 수 있게 해줍니다.
  • Loading branch information
niamu01 committed Dec 6, 2023
1 parent 2d96379 commit 4ca5f3f
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 30 deletions.
46 changes: 35 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"dependencies": {
"@googleapis/sheets": "^3.0.2",
"@nestjs/cache-manager": "^2.1.1",
"@nestjs/common": "^10.2.10",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.2.10",
Expand All @@ -31,7 +32,7 @@
"@nestjs/swagger": "^7.1.16",
"@nestjs/typeorm": "^10.0.1",
"axios": "^1.3.4",
"cache-manager": "^4.0.0",
"cache-manager": "^5.3.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"cookie-parser": "^1.4.6",
Expand Down
14 changes: 5 additions & 9 deletions src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
import {
CacheModule,
MiddlewareConsumer,
Module,
NestModule,
} from '@nestjs/common';
import { CacheModule } from '@nestjs/cache-manager';
import { MiddlewareConsumer, Module, NestModule } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AuthModule } from './auth/auth.module';
import configuration from './configs/configuration';
import TypeOrmConfigService from './configs/typeorm.config';
import { ExtModule } from './ext/ext.module';
import { SessionMiddleware } from './middleware/session-middleware';
import { RedirectModule } from './redirect/redirect.module';
import { ReissueModule } from './reissue/reissue.module';
import { StatisticsModule } from './statistics/statictics.module';
import { TagLogModule } from './tag-log-v1/tag-log.module';
import { TagLogModule2 } from './tag-log-v2/tag-log-v2.module';
import { UserModule } from './user/user.module';
import { ReissueModule } from './reissue/reissue.module';
import { StatisticsModule } from './statistics/statictics.module';
import { RedirectModule } from './redirect/redirect.module';

@Module({
imports: [
Expand Down
3 changes: 2 additions & 1 deletion src/statistics/statictics.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CACHE_MANAGER, Controller, Get, Inject, Logger } from '@nestjs/common';
import { Controller, Get, Inject, Logger } from '@nestjs/common';
import { CACHE_MANAGER } from '@nestjs/cache-manager';
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { StatisticsService } from './statictics.service';
import { CadetPerClusterDto } from './dto/cadet-per-cluster.dto';
Expand Down
16 changes: 8 additions & 8 deletions src/tag-log-v2/tag-log-v2.controller.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CACHE_MANAGER } from '@nestjs/cache-manager';
import {
CACHE_MANAGER,
Controller,
Get,
Inject,
Expand All @@ -15,16 +15,16 @@ import {
ApiResponse,
ApiTags,
} from '@nestjs/swagger';
import { User } from 'src/auth/user.decorator';
import { Cache } from 'cache-manager';
import { UserSessionDto } from 'src/auth/dto/user.session.dto';
import { UserAccumulationType } from './dto/user-accumulation.type';
import { UserInfoType } from './dto/user-Info.type';
import { UserInOutLogsType } from './dto/UserInOutLogs.type';
import { TagLogService } from './tag-log-v2.service';
import { UserAuthGuard } from 'src/auth/guard/user-auth.guard';
import { Cache } from 'cache-manager';
import { StatisticsService } from 'src/statistics/statictics.service';
import { User } from 'src/auth/user.decorator';
import { CadetPerClusterDto } from 'src/statistics/dto/cadet-per-cluster.dto';
import { StatisticsService } from 'src/statistics/statictics.service';
import { UserInOutLogsType } from './dto/UserInOutLogs.type';
import { UserInfoType } from './dto/user-Info.type';
import { UserAccumulationType } from './dto/user-accumulation.type';
import { TagLogService } from './tag-log-v2.service';

@ApiTags('체류 시간 산출 v2')
@Controller({
Expand Down

0 comments on commit 4ca5f3f

Please sign in to comment.