Skip to content

Commit

Permalink
#529 [release] v1.1.1
Browse files Browse the repository at this point in the history
#529 [release] v1.1.1
  • Loading branch information
sohyundoh authored Oct 9, 2024
2 parents 450f20c + 8a889b1 commit ff528c5
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 ff528c5

Please sign in to comment.