xielin 5 years ago
parent
commit
810e359bed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Transformers/Circle/QuestionTransformer.php

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

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