fix update spell error

This commit is contained in:
bazingame 2023-02-27 22:11:39 +08:00
parent 66510fcc29
commit fea0083ebb
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)
}