Skip to content

Commit e8cc3d0

Browse files
committed
fix: should limit count to 20
1 parent ed6222f commit e8cc3d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/postService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const postService = {
101101
and posts.is_temp = false and posts.is_private = false
102102
and posts.released_at < ${cursorPost.released_at}
103103
order by posts.released_at desc
104-
limit 10`;
104+
limit 20`;
105105
const ids = result.map(r => r.fk_post_id);
106106
const posts = await db.post.findMany({
107107
where: {
@@ -126,7 +126,7 @@ const postService = {
126126
where pt.fk_tag_id = uuid(${originTag.id})
127127
and posts.is_temp = false and posts.is_private = false
128128
order by posts.released_at desc
129-
limit 10`;
129+
limit 20`;
130130
const ids = result.map(r => r.fk_post_id);
131131
const posts = await db.post.findMany({
132132
where: {

0 commit comments

Comments
 (0)