A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix update spell error
bazingamefea0083ebb49
diff --git a/internal/service/question_common/question.go b/internal/service/question_common/question.goindex 23424d2c..1d7da822 100644--- a/internal/service/question_common/question.go+++ b/internal/service/question_common/question.go@@ -86,7 +86,7 @@ func NewQuestionCommon(questionRepo QuestionRepo,}}-func (qs *QuestionCommon) UpdataPv(ctx context.Context, questionID string) error {+func (qs *QuestionCommon) UpdatePv(ctx context.Context, questionID string) error {return qs.questionRepo.UpdatePvCount(ctx, questionID)}diff --git a/internal/service/question_service.go b/internal/service/question_service.goindex a21523b5..e216523f 100644--- a/internal/service/question_service.go+++ b/internal/service/question_service.go@@ -630,7 +630,7 @@ func (qs *QuestionService) GetQuestion(ctx context.Context, questionID, userID sfunc (qs *QuestionService) GetQuestionAndAddPV(ctx context.Context, questionID, loginUserID string,per schema.QuestionPermission) (resp *schema.QuestionInfo, err error) {- err = qs.questioncommon.UpdataPv(ctx, questionID)+ err = qs.questioncommon.UpdatePv(ctx, questionID)if err != nil {log.Error(err)}