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(question): when recovering the question, retrieve the tag relationship
LinkinStars168a998ac4fb
diff --git a/internal/service/content/question_service.go b/internal/service/content/question_service.goindex 966bbf0d..d38251d9 100644--- a/internal/service/content/question_service.go+++ b/internal/service/content/question_service.go@@ -628,7 +628,7 @@ func (qs *QuestionService) RecoverQuestion(ctx context.Context, req *schema.Ques}// update tag's question count- if err = qs.tagCommon.RemoveTagRelListByObjectID(ctx, questionInfo.ID); err != nil {+ if err = qs.tagCommon.RecoverTagRelListByObjectID(ctx, questionInfo.ID); err != nil {log.Errorf("remove tag rel list by object id error %v", err)}