|
|
@@ -56,9 +56,6 @@ class Item extends ResourceController
|
|
|
// 업데이트 날짜 기준으로 정렬
|
|
|
$builder->orderBy('I.REGDATE', 'DESC');
|
|
|
|
|
|
- // 총 개수 먼저 구하기 (LIMIT 적용 전)
|
|
|
- $totalCount = $builder->countAllResults(false);
|
|
|
-
|
|
|
// 대시보드 - 진행중인 공동구매의 경우 limit 설정
|
|
|
if ($count !== null && $count > 0) {
|
|
|
$builder->limit($count);
|
|
|
@@ -66,10 +63,7 @@ class Item extends ResourceController
|
|
|
|
|
|
$lists = $builder->get()->getResultArray();
|
|
|
|
|
|
- return $this->respond([
|
|
|
- 'data' => $lists,
|
|
|
- 'total' => $totalCount
|
|
|
- ], 200);
|
|
|
+ return $this->respond($lists, 200);
|
|
|
}
|
|
|
|
|
|
//아이템 검색
|