Skip to content

Commit

Permalink
Fix: Edit field name
Browse files Browse the repository at this point in the history
  • Loading branch information
sally0226 committed Jul 31, 2024
1 parent 01ddd67 commit 25f62b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/search/dtos/searched-place-response.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class SearchedPlaceResponseDto {
likedUserIds?: number[];

@ApiProperty({ description: '기타일 경우 100' })
category_icon_code: number;
categoryIconCode: number;

constructor(searchedPlace: KakaoPlaceItem | PlaceForMap) {
if ('place' in searchedPlace) {
Expand All @@ -67,7 +67,7 @@ export class SearchedPlaceResponseDto {
this.createdBy = new CreatedUser(searchedPlace.createdBy);
this.score = kakaoPlace.score;
this.likedUserIds = searchedPlace.likedUserIds;
this.category_icon_code = kakaoPlace.categoryIconCode;
this.categoryIconCode = kakaoPlace.categoryIconCode;
} else {
this.isRegisteredPlace = false;
this.kakaoId = Number(searchedPlace.id);
Expand All @@ -76,7 +76,7 @@ export class SearchedPlaceResponseDto {
this.y = Number(searchedPlace.y);
this.placeName = searchedPlace.place_name;
this.address = searchedPlace.road_address_name;
this.category_icon_code = searchedPlace.category_icon_code;
this.categoryIconCode = searchedPlace.category_icon_code;
}
}
}

0 comments on commit 25f62b8

Please sign in to comment.