diff --git a/app/Console/Commands/PostUpdate.php b/app/Console/Commands/PostUpdate.php index 4f861e1988e4..00cce48d61c8 100644 --- a/app/Console/Commands/PostUpdate.php +++ b/app/Console/Commands/PostUpdate.php @@ -52,8 +52,7 @@ class PostUpdate extends Command nlog("finished migrating"); - exec('vendor/bin/composer install --no-dev'); - exec('vendor/bin/composer dump'); + exec('vendor/bin/composer install --no-dev -o'); nlog("finished running composer install "); diff --git a/app/Services/Subscription/SubscriptionService.php b/app/Services/Subscription/SubscriptionService.php index 74b83b4e667b..80272e6c83b3 100644 --- a/app/Services/Subscription/SubscriptionService.php +++ b/app/Services/Subscription/SubscriptionService.php @@ -263,5 +263,19 @@ class SubscriptionService //scan for any notification we are required to send } + public function products() + { + return Product::whereIn('id', explode(",", $this->subscription->product_ids))->get(); + } + + public function recurring_products() + { + return Product::whereIn('id', explode(",", $this->subscription->recurring_product_ids))->get(); + } + + public function price() + { + return 1; + } }