Skip to content

Commit d3d4bcf

Browse files
authored
feat(coll): 좋아요 기준 변경 (#248)
1 parent c84a47c commit d3d4bcf

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/main/java/org/devkor/apu/saerok_server/domain/collection/application/CollectionLikeCommandService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
@RequiredArgsConstructor
2525
public class CollectionLikeCommandService {
2626

27-
private static final int POPULAR_COLLECTION_THRESHOLD = 3;
27+
private static final int POPULAR_COLLECTION_THRESHOLD = 5;
2828

2929
private final CollectionLikeRepository collectionLikeRepository;
3030
private final CollectionRepository collectionRepository;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
DELETE FROM popular_collection pc
2+
WHERE (
3+
SELECT COUNT(*)
4+
FROM user_bird_collection_like ubcl
5+
WHERE ubcl.user_bird_collection_id = pc.user_bird_collection_id
6+
) < 5;

0 commit comments

Comments
 (0)