Skip to content

Commit

Permalink
refactor: tradehistory error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungGwan123 committed Nov 27, 2024
1 parent e517135 commit fb15cf4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ export class TradeHistoryResponseDto {
message?: string;

@ApiProperty({ type: [TradeHistory] })
tradeData?: TradeHistory[];
result?: TradeHistory[];
}
4 changes: 2 additions & 2 deletions packages/server/src/trade-history/trade-history.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/trade-history/trade-history.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class TradeHistoryService {

return {
statusCode: HttpStatus.OK,
tradeData: filteredHistories,
result: filteredHistories,
};
} catch (error) {
this.logger.error(`거래 내역 조회 실패: ${error.message}`, error.stack);
Expand Down

0 comments on commit fb15cf4

Please sign in to comment.