Skip to content

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 add question postUpdateTime

aichy126eeb67dd21e65
diff --git a/internal/service/question_service.go b/internal/service/question_service.go
index c66497be..3b60dcae 100644
--- a/internal/service/question_service.go
+++ b/internal/service/question_service.go
@@ -270,6 +270,7 @@ func (qs *QuestionService) AddQuestion(ctx context.Context, req *schema.Question
question.Status = entity.QuestionStatusAvailable
question.RevisionID = "0"
question.CreatedAt = now
+ question.PostUpdateTime = now
question.Pin = entity.QuestionUnPin
question.Show = entity.QuestionShow
//question.UpdatedAt = nil