Skip to content

Commit

Permalink
#527 [hotfix] 모임별 베스트 글모임 산정 방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sohyundoh committed Oct 9, 2024
1 parent 6b35522 commit 40195ce
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ public List<PostAndCuriousCountInLastWeek> findMostCuriousPostBeforeOneWeek(fina
}

@Override
public List<Post> findPostByLatestCurious(final Moim moim, final int requestSize, final List<Post> posts) {
public List<Post> findPostByLatestCurious(final Moim targetMoim, final int requestSize, final List<Post> posts) {
return queryFactory.select(post)
.from(curious)
.join(curious.post, post)
.join(topic).on(post.topic.id.eq(topic.id))
.join(moim).on(topic.moim.id.eq(moim.id))
.where(moim.id.eq(targetMoim.getId()))
.where(post.notIn(posts))
.orderBy(curious.createdAt.desc())
.limit(requestSize)
Expand Down

0 comments on commit 40195ce

Please sign in to comment.