fixed wishlist

This commit is contained in:
Edward Yang 2022-07-27 17:02:47 +08:00
parent 3539d32cbc
commit e7480df0c5
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class ProductDetail extends JsonResource
'category_id' => $this->category_id ?? null,
'variables' => $this->decodeVariables($this->variables),
'skus' => SkuDetail::collection($this->skus)->jsonSerialize(),
'in_wishlist' => CustomerRepo::inWishlist($this, current_customer()),
'in_wishlist' => CustomerRepo::inWishlist($this->resource, current_customer()),
];
}