Skip to content

Commit

Permalink
Merge pull request #34 from WOK-AT/feature/place-filtering
Browse files Browse the repository at this point in the history
[Hotfix] wifi 추가
  • Loading branch information
dahyunnee authored Jun 19, 2023
2 parents fa045f7 + 28fb22d commit c97dd26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class OnePlaceInfoResponse {
private String location;
private List<String> imageURLs;
private Map<String, Object> distance;
private Map<String, Object> wifi;

public static OnePlaceInfoResponse createOnePlaceInfoResponse (SpaceInfo spaceInfo) {
return OnePlaceInfoResponse.builder()
Expand All @@ -54,6 +55,7 @@ public static OnePlaceInfoResponse createOnePlaceInfoResponse (SpaceInfo spaceIn
spaceInfo.getHdmiScreen()
))
.distance(spaceInfo.getDistance())
.wifi(spaceInfo.getWifi())
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public SpaceInfo savePlace(List<MultipartFile> multipartFile, PostPlaceRequest p
public OnePlaceInfoResponse findByIdCustom(String id) throws PlaceNotFoundException {
SpaceInfo spaceInfo = mongoTemplate.findById(id, SpaceInfo.class);
if (spaceInfo == null) throw new PlaceNotFoundException();

LOGGER.info(spaceInfo);
OnePlaceInfoResponse placeInfoResponse = OnePlaceInfoResponse.createOnePlaceInfoResponse(spaceInfo);
return placeInfoResponse;
}
Expand Down

0 comments on commit c97dd26

Please sign in to comment.