Hotfix: Selcting correct table name for channel Id
This commit is contained in:
@@ -89,7 +89,7 @@ class ProductIndexer extends BaseProductIndexer
|
||||
$data['average_rating'] = $reviews->isEmpty() ? null : round($reviews->avg('rating'), 1);
|
||||
$data['channel_ids'] = $model->channels()
|
||||
->wherePivot('enabled', true)
|
||||
->pluck('id')
|
||||
->pluck('lunar_channels.id')
|
||||
->toArray();
|
||||
|
||||
return $data;
|
||||
|
||||
Reference in New Issue
Block a user