Skip to content

Commit

Permalink
fix: 장소 검색 DTO에 맞게 수정 #203
Browse files Browse the repository at this point in the history
  • Loading branch information
koomchang committed Nov 28, 2024
1 parent fe28d95 commit 5222b57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions backend/src/search/dto/PlaceSearchResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ export class PlaceSearchResponse {
constructor(
readonly id: string,
readonly name: string,
readonly latitude: number,
readonly longitude: number,
readonly location: { latitude: number; longitude: number },
readonly google_place_id: string,
readonly category?: string,
readonly description?: string,
Expand Down
6 changes: 4 additions & 2 deletions backend/src/search/search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ export class SearchService {
return new PlaceSearchResponse(
_source.id,
_source.name,
_source.location.lat,
_source.location.lon,
{
latitude: _source.location.lat,
longitude: _source.location.lon,
},
_source.googlePlaceId,
_source.category as Category,
_source.description,
Expand Down

0 comments on commit 5222b57

Please sign in to comment.