wzq 5 anni fa
parent
commit
b96e40f349
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      app/Repositories/Post/PostRepository.php

+ 0 - 2
app/Repositories/Post/PostRepository.php

@@ -400,8 +400,6 @@ class PostRepository
         DB::beginTransaction();
         try {
             $comment = $this->postComment->create($data);
-            $post->data->comment_count += 1;
-            $post->data->save();
 
             DB::commit();