Skip to content

Commit

Permalink
dev4: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderf00l committed Dec 20, 2023
1 parent a57dbec commit 39f6e2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/pkg/repository/comment/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func (c *commentRepoPG) GetCommensToPin(ctx context.Context, pinID, lastID, coun
}

for rows.Next() {
cmt.Author = &user.User{}
err = rows.Scan(&cmt.ID, &cmt.Author.ID, &cmt.Author.Username, &cmt.Author.Avatar, &cmt.Content)
if err != nil {
return cmts, fmt.Errorf("scan a comment when getting comments on a pin: %w", err)
Expand Down

0 comments on commit 39f6e2f

Please sign in to comment.