aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--api/Posts/Services/PostService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/Posts/Services/PostService.php b/api/Posts/Services/PostService.php
index a4af3cf..812f638 100644
--- a/api/Posts/Services/PostService.php
+++ b/api/Posts/Services/PostService.php
@@ -36,7 +36,7 @@ class PostService
public function getAll($options = [])
{
- return Post::with('post_type')->with('user')->get();
+ return $this->postRepository->get($options);
}
public function getById($postId, array $options = [])