Skip to content

Commit a9f6e90

Browse files
committed
fix: missing user id when create post
1 parent 7636244 commit a9f6e90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

service/post_service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ func (s *postService) CreatePost(ctx context.Context, userId string, req dto.Pos
4242

4343
post := entity.Post{
4444
Text: req.Text,
45+
UserID: uuid.MustParse(userId),
4546
ParentID: req.ParentID,
4647
}
4748

0 commit comments

Comments
 (0)