xielin 5 년 전
부모
커밋
810e359bed
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Transformers/Circle/QuestionTransformer.php

+ 1 - 1
app/Transformers/Circle/QuestionTransformer.php

@@ -32,7 +32,7 @@ class QuestionTransformer extends TransformerAbstract
         return [
             'id' => $interestCircle['id'],
             'join_question' => $this->formatQuestion($interestCircle),
-            'answer_count' => $answer > 0 ? $answer : 0
+            'answer_count' => $answer
         ];
     }