Skip to content

Commit c039aca

Browse files
committed
#120 [REFACTOR] 페이징 조회 시, 이미지가 없다면 null 반환
1 parent 6112d95 commit c039aca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/example/trace/post/repository/PostRepositoryCustomImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private BooleanExpression postTypeEq(PostType postType) {
4141
}
4242

4343
StringExpression imageUrlExpr = Expressions.cases()
44-
.when(post.images.isEmpty()).then("")
44+
.when(post.images.isEmpty()).then(Expressions.stringTemplate("null"))
4545
.otherwise(
4646
JPAExpressions
4747
.select(postImage.imageUrl)

0 commit comments

Comments
 (0)