Skip to content

Commit

Permalink
Merge pull request #82 from Hooking-CEOS/feature/brand
Browse files Browse the repository at this point in the history
[feat] 스크랩 횟수 카운트 함수수정
  • Loading branch information
CYJhub authored Jul 27, 2023
2 parents dc0b725 + 8161dac commit f283db1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/main/java/shop/hooking/hooking/service/BrandService.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,6 @@ public BrandRes.BrandDetailDto getOneBrand(Long id) {
return brandDetailDto;
}

public int countScrapCnt(Card card){
Long cardId = card.getId();

List<Scrap> scraps = scrapRepository.findByCardId(cardId);
int length = scraps.size();
return length;
}

// public boolean followBrand(Long brandId, User user){
//
// Brand brand = brandRepository.findBrandById(brandId);
Expand Down

0 comments on commit f283db1

Please sign in to comment.