Skip to content

Commit

Permalink
#68 관리자시읕 댓글 목록 표시 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
akasima committed Mar 9, 2020
1 parent a62d863 commit a8f836f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/ManagerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function index(Request $request, MenuHandler $menus)
$query = $this->makeWhere($query, $request);
}

$comments = $query->orderBy(Comment::CREATED_AT)->with('target')->paginate();
$comments = $query->orderBy(Comment::CREATED_AT, 'desc')->with('target')->paginate()->appends($request->except('page'));

$map = $this->handler->getInstanceMap();
$menuItems = $menus->items()->fetchIn(array_keys($map), 'route')->getDictionary();
Expand Down Expand Up @@ -251,7 +251,7 @@ public function trash(Request $request, MenuHandler $menus)
$comments = $model->newQuery()
->whereIn('instance_id', $this->getInstances())
->where('status', Comment::STATUS_TRASH)
->orderBy(Comment::CREATED_AT)->paginate();
->orderBy(Comment::CREATED_AT, 'desc')->paginate()->appends($request->except('page'));

$map = $this->handler->getInstanceMap();
$menuItems = $menus->items()->fetchIn(array_keys($map), 'route')->getDictionary();
Expand Down

0 comments on commit a8f836f

Please sign in to comment.