We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents db168b9 + 1167da5 commit 6e155c5Copy full SHA for 6e155c5
1 file changed
src/post/post.service.ts
@@ -83,14 +83,14 @@ export class PostService {
83
: '1=1',
84
{ blockedUserIds },
85
)
86
- .orderBy('post.createdAt', 'DESC')
+ .orderBy('post.createdAt', 'DESC');
87
+
88
+ const total = await queryBuilder.getCount();
89
90
+ queryBuilder
91
.take(pageOptionsDto.take)
92
.skip((pageOptionsDto.page - 1) * pageOptionsDto.take);
-
93
const posts = await queryBuilder.getMany();
- console.log(posts);
- const total = await queryBuilder.getCount();
94
95
const currentUserMatchings =
96
await this.matchingService.getMatchingsByCurrentId(currentUserId);
0 commit comments