Skip to content

Commit

Permalink
#18 [Update] 코드 리팩토링
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna-Jin committed Jul 15, 2022
1 parent 0040a77 commit a4a0331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class StoreDetailController {
@ApiOperation(value = "업장 상세정보를 조회하는 메소드")
@GetMapping("/detail/{storeId}")
public StoreResponseDto getStore(
@PathVariable int storeId,
@PathVariable(required = false) int storeId,
@AuthenticationPrincipal User user) {
return storeDetailService.getStore(storeId, user);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public StoreResponseDto storeToResDto(Store store, User user) {
pointAvg = 0;
}

String isBookmark = "";
// TODO 북마크 여부 가져오기
String isBookmark = "N";
for (Bookmark bookmark : store.getBookmarkList()) {
if (user == null) {
isBookmark = "N";
Expand Down

0 comments on commit a4a0331

Please sign in to comment.