wesmiler пре 1 дан
родитељ
комит
ec7b62c9e6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Services/Api/PostRecordService.php

+ 1 - 1
app/Services/Api/PostRecordService.php

@@ -74,7 +74,7 @@ class PostRecordService extends BaseService
      */
     public function getQuery($params)
     {
-        $where = ['posts_records.mark' => 1];
+        $where = ['posts_records.reply_id'=>0,'posts_records.mark' => 1];
         $status = isset($params['status'])? $params['status'] : 0;
         $type = isset($params['type'])? $params['type'] : 0;
         $userId = isset($params['user_id'])? $params['user_id'] : 0;