Skip to content

Commit

Permalink
fix: 修复BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
Lansongxx committed Apr 16, 2024
1 parent 94a15a1 commit d01926a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions biz/application/service/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func (s *PostService) GetPost(ctx context.Context, req *core_api.GetPostReq) (re
}

if err = mr.Finish(func() error {
s.PostDomainService.LoadAuthor(ctx, resp.Author, userData.GetUserId()) // 作者
s.PostDomainService.LoadAuthor(ctx, resp.Author, res.UserId) // 作者
return nil
}, func() error {
s.PostDomainService.LoadLikeCount(ctx, &resp.LikeCount, req.PostId) // 点赞量
Expand Down Expand Up @@ -334,7 +334,6 @@ func (s *PostService) GetPost(ctx context.Context, req *core_api.GetPostReq) (re
ToId: req.PostId,
RelationType: core_api.RelationType_ViewRelationType,
})
fmt.Println(err)
}
return nil
}, func() error {
Expand Down

0 comments on commit d01926a

Please sign in to comment.