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 question

aichy126f9798534c9d6
diff --git a/internal/service/question_service.go b/internal/service/question_service.go
index 659a4d55..999b691f 100644
--- a/internal/service/question_service.go
+++ b/internal/service/question_service.go
@@ -472,7 +472,7 @@ func (qs *QuestionService) UpdateQuestion(ctx context.Context, req *schema.Quest
}
if dbinfo.Status == entity.QuestionStatusDeleted {
err = errors.BadRequest(reason.QuestionCannotUpdate)
- return
+ return nil, err
}
now := time.Now()