We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent add6fea commit 909133cCopy full SHA for 909133c
server/api/router/post.ts
@@ -348,7 +348,17 @@ export const postRouter = createTRPCRouter({
348
cursor ? paginationMapping[sort].cursor : undefined,
349
),
350
)
351
- .groupBy(post.id, bookmarked.id, user.id)
+ .groupBy(
352
+ post.id,
353
+ post.slug,
354
+ post.title,
355
+ post.excerpt,
356
+ post.published,
357
+ post.readTimeMins,
358
+ post.likes,
359
+ bookmarked.id,
360
+ user.id,
361
+ )
362
.limit(limit + 1)
363
.orderBy(paginationMapping[sort].orderBy);
364
0 commit comments