Skip to content

Commit

Permalink
fix: checkcoin response fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungGwan123 committed Nov 26, 2024
1 parent 94d03db commit ebf56ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/server/src/trade/dtos/trade.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export interface TradeResponse {
statusCode: number;
message: string;
result?: any;
own?: boolean;
}

export interface CoinPriceDto {
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/trade/trade.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class TradeService {
message: coinData
? '보유하고 계신 코인입니다.'
: '보유하지 않은 코인입니다.',
result: coinData,
own: coinData ? true : false
};
} catch (error) {
this.logger.error('코인 데이터 조회 실패', {
Expand Down

0 comments on commit ebf56ea

Please sign in to comment.