fix(comment): update the wrong errors

This commit is contained in:
LinkinStars 2023-07-13 16:01:13 +08:00
parent a1c7a5d70a
commit 90b482cf61
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ func (cs *CommentCommonService) GetComment(ctx context.Context, commentID string
return
}
if !exist {
return nil, errors.BadRequest(reason.UnknownError)
return nil, errors.BadRequest(reason.CommentNotFound)
}
resp = &schema.GetCommentResp{}