Skip to content

Commit acf89a3

Browse files
authored
Merge pull request #228 from bazingame/fix-update
fix:misspelling correction of words
2 parents 66510fc + fea0083 commit acf89a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/service/question_common/question.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func NewQuestionCommon(questionRepo QuestionRepo,
8686
}
8787
}
8888

89-
func (qs *QuestionCommon) UpdataPv(ctx context.Context, questionID string) error {
89+
func (qs *QuestionCommon) UpdatePv(ctx context.Context, questionID string) error {
9090
return qs.questionRepo.UpdatePvCount(ctx, questionID)
9191
}
9292

internal/service/question_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ func (qs *QuestionService) GetQuestion(ctx context.Context, questionID, userID s
630630
func (qs *QuestionService) GetQuestionAndAddPV(ctx context.Context, questionID, loginUserID string,
631631
per schema.QuestionPermission) (
632632
resp *schema.QuestionInfo, err error) {
633-
err = qs.questioncommon.UpdataPv(ctx, questionID)
633+
err = qs.questioncommon.UpdatePv(ctx, questionID)
634634
if err != nil {
635635
log.Error(err)
636636
}

0 commit comments

Comments
 (0)