Skip to content

Commit 74c473d

Browse files
committed
fix del answer
1 parent b7437e3 commit 74c473d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/service/answer_service.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ func (as *AnswerService) RemoveAnswer(ctx context.Context, req *schema.RemoveAns
9999
if !exist {
100100
return errors.BadRequest(reason.AnswerCannotDeleted)
101101
}
102-
if questionInfo.AnswerCount > 1 {
103-
return errors.BadRequest(reason.AnswerCannotDeleted)
104-
}
105102
if questionInfo.AcceptedAnswerID != "" {
106103
return errors.BadRequest(reason.AnswerCannotDeleted)
107104
}

0 commit comments

Comments
 (0)