We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44e9537 commit ed71b51Copy full SHA for ed71b51
src/post/post.service.ts
@@ -75,17 +75,17 @@ export class PostService {
75
total,
76
});
77
78
+ // totalPosts가 없을 경우 빈 배열 반환
79
+ if (!totalPosts.length) {
80
+ return new PageDto([], pageMetaDto);
81
+ }
82
+
83
const last_page = pageMetaDto.last_page;
84
85
if (last_page < pageMetaDto.page) {
86
throw DataNotFoundException('해당 페이지는 존재하지 않습니다');
87
}
88
- // totalPosts가 없을 경우 빈 배열 반환
- if (!totalPosts.length) {
- return new PageDto([], pageMetaDto);
- }
-
89
// 차단한 사용자 ID 목록 가져오기
90
const blockedUserIds = currentUserId
91
? await this.userBlockService.getBlockedUserIdsByRequesterId(
0 commit comments