Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/Search/ProductIndexer.php
Original file line number Diff line number Diff line change
@@ -41,11 +41,11 @@ public function toSearchableArray(Model $model): array
// Do this here so other additions to the data appear under the attributes,
// more of a vanity thing than anything else.
$data = array_merge([
'id' => $model->id,
'id' => (string) $model->id,
'status' => $model->status,
'product_type' => $model->productType->name,
'brand' => $model->brand?->name,
'created_at' => $model->created_at->timestamp,
'created_at' => (int) $model->created_at->timestamp,
], $this->mapSearchableAttributes($model));

if ($thumbnail = $model->thumbnail) {

0 comments on commit 3c954f8

Please sign in to comment.