|
@@ -66,7 +66,7 @@ class VideoGroupController extends Controller {
|
|
|
return $this->response->error($validator->errors()->first(), 500);
|
|
|
}
|
|
|
$info = $this->videoGroupRepository->view($data);
|
|
|
- $videoInfo = $this->videoGroupRepository->VideoInfoIndex($data);
|
|
|
+ $videoInfo = $this->videoGroupRepository->VideoInfoIndex(['video_group_id'=>$data['id']]);
|
|
|
$fractal = new Manager();
|
|
|
$resource = new Collection($videoInfo, new VideoGroupInfoTransformer());
|
|
|
$resource->setPaginator(new IlluminatePaginatorAdapter($videoInfo));
|