fix del answer

This commit is contained in:
aichy126 2023-03-07 16:37:22 +08:00
parent b7437e3c5b
commit 74c473dd8e
1 changed files with 0 additions and 3 deletions

View File

@ -99,9 +99,6 @@ func (as *AnswerService) RemoveAnswer(ctx context.Context, req *schema.RemoveAns
if !exist {
return errors.BadRequest(reason.AnswerCannotDeleted)
}
if questionInfo.AnswerCount > 1 {
return errors.BadRequest(reason.AnswerCannotDeleted)
}
if questionInfo.AcceptedAnswerID != "" {
return errors.BadRequest(reason.AnswerCannotDeleted)
}