wzq 5 éve
szülő
commit
1056240b4d
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app/Repositories/PostRepositories.php

+ 1 - 1
app/Repositories/PostRepositories.php

@@ -301,7 +301,7 @@ class PostRepositories
             $comment = $this->postComment->create($data);
 
             if($comment->parent_id){
-                $this->postComment->where('parent_id', $comment->parent_id)->increment('reply_count');
+                $this->postComment->where('id', $comment->parent_id)->increment('reply_count');
             }
 
             DB::commit();