Merge pull request #5259 from turbo124/v5-develop
Transform id's correctly
This commit is contained in:
commit
3d5f494723
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