From fb15cf435c3964ec90493fc9f3f228329831d03d Mon Sep 17 00:00:00 2001 From: SeungGwa123 Date: Wed, 27 Nov 2024 15:48:29 +0900 Subject: [PATCH] refactor: tradehistory error fix --- packages/server/src/trade-history/dtos/trade-history.dto.ts | 2 +- packages/server/src/trade-history/trade-history.controller.ts | 4 ++-- packages/server/src/trade-history/trade-history.service.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/server/src/trade-history/dtos/trade-history.dto.ts b/packages/server/src/trade-history/dtos/trade-history.dto.ts index 88ee321b..79afb79e 100644 --- a/packages/server/src/trade-history/dtos/trade-history.dto.ts +++ b/packages/server/src/trade-history/dtos/trade-history.dto.ts @@ -54,5 +54,5 @@ export class TradeHistoryResponseDto { message?: string; @ApiProperty({ type: [TradeHistory] }) - tradeData?: TradeHistory[]; + result?: TradeHistory[]; } \ No newline at end of file diff --git a/packages/server/src/trade-history/trade-history.controller.ts b/packages/server/src/trade-history/trade-history.controller.ts index 194bffc9..8347e3ae 100644 --- a/packages/server/src/trade-history/trade-history.controller.ts +++ b/packages/server/src/trade-history/trade-history.controller.ts @@ -38,8 +38,8 @@ export class TradeHistoryController { name: 'coins', required: false, type: String, - example: 'BTC-KRW', - description: '조회할 코인 페어 (예: BTC-KRW)', + example: 'KRW-BTC', + description: '조회할 코인 페어 (예: KRW-BTC)', }) @ApiResponse({ status: HttpStatus.OK, diff --git a/packages/server/src/trade-history/trade-history.service.ts b/packages/server/src/trade-history/trade-history.service.ts index fc6e2312..06ec2d5e 100644 --- a/packages/server/src/trade-history/trade-history.service.ts +++ b/packages/server/src/trade-history/trade-history.service.ts @@ -47,7 +47,7 @@ export class TradeHistoryService { return { statusCode: HttpStatus.OK, - tradeData: filteredHistories, + result: filteredHistories, }; } catch (error) { this.logger.error(`거래 내역 조회 실패: ${error.message}`, error.stack);