From cf81c6ec256f5cea231e8b519a51b060b96caf34 Mon Sep 17 00:00:00 2001 From: anjdydhody Date: Thu, 7 Nov 2024 15:25:15 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20=ED=95=84?= =?UTF-8?q?=EC=9A=94=EC=97=86=EB=8A=94=20import=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BE/src/app.module.ts | 2 -- BE/src/stock/index/stock.index.controller.ts | 2 +- BE/src/websocket/socket.module.ts | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/BE/src/app.module.ts b/BE/src/app.module.ts index 28a931c8..fbef051f 100644 --- a/BE/src/app.module.ts +++ b/BE/src/app.module.ts @@ -7,8 +7,6 @@ import { AppService } from './app.service'; import { AuthModule } from './auth/auth.module'; import { User } from './auth/user.entity'; import { StockIndexModule } from './stock/index/stock.index.module'; -import { SocketService } from './websocket/socket.service'; -import { SocketGateway } from './websocket/socket.gateway'; import { StockTopfiveModule } from './stock/topfive/stock.topfive.module'; import { KoreaInvestmentModule } from './koreaInvestment/korea.investment.module'; import { SocketModule } from './websocket/socket.module'; diff --git a/BE/src/stock/index/stock.index.controller.ts b/BE/src/stock/index/stock.index.controller.ts index c44c29db..c3ddce59 100644 --- a/BE/src/stock/index/stock.index.controller.ts +++ b/BE/src/stock/index/stock.index.controller.ts @@ -69,7 +69,7 @@ export class StockIndexController { return new StockIndexResponseDto(stockLists, stockValues); } - @Cron('*/1 9-16 * * 1-5') + @Cron('*/5 9-16 * * 1-5') async cronStockIndexLists() { const accessToken = await this.koreaInvestmentService.getAccessToken(); diff --git a/BE/src/websocket/socket.module.ts b/BE/src/websocket/socket.module.ts index 7dad68a3..4e9e2eb2 100644 --- a/BE/src/websocket/socket.module.ts +++ b/BE/src/websocket/socket.module.ts @@ -1,10 +1,9 @@ import { Module } from '@nestjs/common'; import { SocketService } from './socket.service'; import { SocketGateway } from './socket.gateway'; -import { KoreaInvestmentModule } from '../koreaInvestment/korea.investment.module'; @Module({ - imports: [KoreaInvestmentModule], + imports: [], controllers: [], providers: [SocketService, SocketGateway], exports: [SocketGateway],