Skip to content

Commit c4219bf

Browse files
committed
🧑‍💻 Send 3 instead of 2 comments per post
Signed-off-by: grnd-alt <[email protected]>
1 parent d2cac45 commit c4219bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

db/sql/dbgen/comments.sql.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

db/sql/queries/comments.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ select * from comments where post_id = $1 ORDER BY created_at DESC LIMIT $2 OFFS
1313
-- name: GetCommentsByPosts :many
1414
SELECT c.* from unnest($1::varchar[]) as post_ids
1515
JOIN LATERAL (
16-
SELECT * FROM comments WHERE post_id = post_ids ORDER BY created_at DESC LIMIT 2
16+
SELECT * FROM comments WHERE post_id = post_ids ORDER BY created_at DESC LIMIT 3
1717
) c ON true;
1818

1919
-- name: DeleteCommentsByPost :exec

0 commit comments

Comments
 (0)