From 43dd256732f94462e403722aa49ebe0d5f6df150 Mon Sep 17 00:00:00 2001 From: merdan Date: Tue, 3 May 2022 17:22:04 +0500 Subject: [PATCH] category indexes --- packages/Sarga/API/Http/Resources/Catalog/Suggestion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Sarga/API/Http/Resources/Catalog/Suggestion.php b/packages/Sarga/API/Http/Resources/Catalog/Suggestion.php index 24285d772..c23fed6cb 100644 --- a/packages/Sarga/API/Http/Resources/Catalog/Suggestion.php +++ b/packages/Sarga/API/Http/Resources/Catalog/Suggestion.php @@ -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]) ]; }