Transform id's correctly
This commit is contained in:
parent
9a4371a2eb
commit
750da31021
1 changed files with 2 additions and 2 deletions
|
|
@ -265,12 +265,12 @@ class SubscriptionService
|
|||
|
||||
public function products()
|
||||
{
|
||||
return Product::whereIn('id', explode(",", $this->subscription->product_ids))->get();
|
||||
return Product::whereIn('id', $this->transformKeys(explode(",", $this->subscription->product_ids)))->get();
|
||||
}
|
||||
|
||||
public function recurring_products()
|
||||
{
|
||||
return Product::whereIn('id', explode(",", $this->subscription->recurring_product_ids))->get();
|
||||
return Product::whereIn('id', $this->transformKeys(explode(",", $this->subscription->recurring_product_ids)))->get();
|
||||
}
|
||||
|
||||
public function price()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue