Merge remote-tracking branch 'github/dev' into test

This commit is contained in:
LinkinStars 2023-03-07 16:38:04 +08:00
commit 886199cc6e
1 changed files with 0 additions and 3 deletions

View File

@ -107,9 +107,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)
}