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.
update question
aichy1260c533e554dcc
diff --git a/internal/service/question_service.go b/internal/service/question_service.goindex c3271b6e..cea7af84 100644--- a/internal/service/question_service.go+++ b/internal/service/question_service.go@@ -270,6 +270,8 @@ func (qs *QuestionService) AddQuestion(ctx context.Context, req *schema.Questionquestion.Status = entity.QuestionStatusAvailablequestion.RevisionID = "0"question.CreatedAt = now+ question.Pin = entity.QuestionUnPin+ question.Show = entity.QuestionShow//question.UpdatedAt = nilerr = qs.questionRepo.AddQuestion(ctx, question)if err != nil {@@ -698,6 +700,7 @@ func (qs *QuestionService) GetQuestion(ctx context.Context, questionID, userID sper.CanHide = falseper.CanPin = false}+if question.Status == entity.QuestionStatusDeleted {operation := &schema.Operation{}operation.Msg = translator.Tr(handler.GetLangByCtx(ctx), reason.QuestionAlreadyDeleted)