Skip to content

Commit

Permalink
fix: "알림에서 빈리스트는 null로 응답하도록 수정"
Browse files Browse the repository at this point in the history
  • Loading branch information
seonwoo-jung committed Jun 12, 2024
1 parent 4f378d1 commit 0a8321b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.tobe.healthy.common.NotificationSenderInfo.SenderInfo
import com.tobe.healthy.notification.domain.dto.out.NotificationRedDotStatusResult

data class KotlinCustomPaging<T>(
var content: List<T>,
var content: List<T>?,
val pageNumber: Int,
val pageSize: Int,
val totalPages: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class NotificationService(
val results = RetrieveNotificationWithRedDotResult.from(notification, redDotStatus)

return KotlinCustomPaging(
content = results.content,
content = results.content.ifEmpty { null },
pageNumber = notification.pageable.pageNumber,
pageSize = notification.pageable.pageSize,
totalPages = notification.totalPages,
Expand Down

0 comments on commit 0a8321b

Please sign in to comment.