Merge pull request #228 from bazingame/fix-update

fix:misspelling correction of words
This commit is contained in:
aichy 2023-02-28 14:46:31 +08:00 committed by GitHub
commit acf89a399b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}

View File

@ -630,7 +630,7 @@ func (qs *QuestionService) GetQuestion(ctx context.Context, questionID, userID s
func (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)
}