Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/repo/captcha/captcha.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (cr *captchaRepo) SetActionType(ctx context.Context, unit, actionType, conf
value.Num = amount
valueStr, err := json.Marshal(value)
if err != nil {
return nil
return err
}
err = cr.data.Cache.SetString(ctx, cacheKey, string(valueStr), 6*time.Minute)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/service/content/question_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1466,7 +1466,7 @@ func canViewSimilarQuestion(question *entity.Question, userID string, per schema
func (qs *QuestionService) SimilarQuestion(ctx context.Context, questionID string, loginUserID string) ([]*schema.QuestionPageResp, int64, error) {
question, err := qs.questioncommon.Info(ctx, questionID, loginUserID)
if err != nil {
return nil, 0, nil
return nil, 0, err
}
tagNames := make([]string, 0, len(question.Tags))
for _, tag := range question.Tags {
Expand Down
2 changes: 1 addition & 1 deletion internal/service/content/revision_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ func (rs *RevisionService) CheckCanUpdateRevision(ctx context.Context, req *sche
resp *schema.ErrTypeData, err error) {
_, exist, err := rs.revisionRepo.ExistUnreviewedByObjectID(ctx, req.ID)
if err != nil {
return nil, nil
return nil, err
}
if exist {
return &schema.ErrTypeToast, errors.BadRequest(reason.RevisionReviewUnderway)
Expand Down