Skip to content

Commit

Permalink
[Fix] : 스터디 단건조회 PostData 생성자 이슈 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
wellbeing-dough committed Nov 30, 2023
1 parent 2e03e1b commit a4fd0de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public Optional<PostData> findPostById(Long postId, Long userId) {
PostData.class,
post.id.as("postId"), post.title, post.createdDate, post.content, post.major,
post.studyPerson, post.filteredGender, post.studyWay, post.penalty,
post.penaltyWay, post.studyStartDate, post.studyEndDate, post.remainingSeat, post.chatUrl,
post.penaltyWay, post.studyStartDate, post.studyEndDate, post.chatUrl, post.remainingSeat,
userId != null ? Expressions.booleanTemplate("{0} = {1}", post.postedUserId, userId) : Expressions.constant(false),
userId != null ? Expressions.booleanTemplate("{0} = {1}", bookmark.userId, userId) : Expressions.constant(false),
Projections.constructor(
Expand Down

0 comments on commit a4fd0de

Please sign in to comment.