Skip to content

Commit

Permalink
[KAN-000] 좋아요 API에서 좋아요 반영안된상태에서 조회 되는버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkyoungdeok committed May 27, 2024
1 parent e5cb0f4 commit b21c95e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class LikeRestaurantService(
restaurantLikeRepository.deleteByUserIdAndRestaurantId(userId, restaurantId)
}

return LikeRestaurantResponse(restaurant.toDto())
return LikeRestaurantResponse(restaurantRepository.findDtoById(restaurantId)!!.toDto())
}

@Transactional
Expand Down

0 comments on commit b21c95e

Please sign in to comment.