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 1a21f9e commit e517135
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/server/src/trade-history/dtos/trade-history.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export class TradeHistoryResponseDto {
statusCode: number;

@ApiProperty({ example: '거래 내역을 찾았습니다.' })
message: string;
message?: string;

@ApiProperty({ type: [TradeHistory] })
tradeData: TradeHistory[];
tradeData?: TradeHistory[];
}
2 changes: 0 additions & 2 deletions packages/server/src/trade-history/trade-history.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export class TradeHistoryService {
return {
statusCode: HttpStatus.NO_CONTENT,
message: '거래 내역이 없습니다.',
tradeData: [],
};
}

Expand All @@ -48,7 +47,6 @@ export class TradeHistoryService {

return {
statusCode: HttpStatus.OK,
message: '거래 내역을 찾았습니다.',
tradeData: filteredHistories,
};
} catch (error) {
Expand Down

0 comments on commit e517135

Please sign in to comment.