Hotfix: Selcting correct table name for channel Id

This commit is contained in:
2026-08-26 14:29:08 +03:00
parent 235fdda4a7
commit 885923380d
+1 -1
View File
@@ -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;