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 49e32972..88ee321b 100644 --- a/packages/server/src/trade-history/dtos/trade-history.dto.ts +++ b/packages/server/src/trade-history/dtos/trade-history.dto.ts @@ -51,8 +51,8 @@ export class TradeHistoryResponseDto { statusCode: number; @ApiProperty({ example: '거래 내역을 찾았습니다.' }) - message: string; + message?: string; @ApiProperty({ type: [TradeHistory] }) - tradeData: TradeHistory[]; + tradeData?: TradeHistory[]; } \ No newline at end of file diff --git a/packages/server/src/trade-history/trade-history.service.ts b/packages/server/src/trade-history/trade-history.service.ts index e16a9c23..fc6e2312 100644 --- a/packages/server/src/trade-history/trade-history.service.ts +++ b/packages/server/src/trade-history/trade-history.service.ts @@ -32,7 +32,6 @@ export class TradeHistoryService { return { statusCode: HttpStatus.NO_CONTENT, message: '거래 내역이 없습니다.', - tradeData: [], }; } @@ -48,7 +47,6 @@ export class TradeHistoryService { return { statusCode: HttpStatus.OK, - message: '거래 내역을 찾았습니다.', tradeData: filteredHistories, }; } catch (error) {