category indexes
This commit is contained in:
parent
8440f3d5f7
commit
43dd256732
|
|
@ -18,7 +18,7 @@ class Suggestion extends JsonResource
|
|||
'id' => $this->product_id ?? $this->id,
|
||||
'type' => $this->suggestion_type,
|
||||
'name' => $this->name,
|
||||
$this->mergeWhen($this->suggestion_type != 'product',['description' => $this->description])
|
||||
$this->mergeWhen($this->suggestion_type === 'category',['description' => $this->description])
|
||||
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue