Skip to content

Commit

Permalink
feat: add public_id in comments queries
Browse files Browse the repository at this point in the history
  • Loading branch information
hookor authored and cuconveniencestore committed Aug 28, 2024
1 parent be2ccf8 commit 6e0fc57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions models/posts-queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const queries = {
getComments: `
SELECT
u.profileUrl,
u.nickname,
u.nickname,
u.public_id,
c.content,
c.created_at,
c.id,
Expand All @@ -55,7 +56,7 @@ const queries = {
c.id;
`,
getReply: `SELECT
u.profileUrl, u.nickname, r.content, r.created_at, r.id
u.profileUrl, u.nickname, u.public_id, r.content, r.created_at, r.id
FROM user u
LEFT JOIN reply r
ON r.comment_id = ?
Expand Down

0 comments on commit 6e0fc57

Please sign in to comment.