浏览代码

Update ApachePingWebsitesWithCurl.php

Bozhidar Slaveykov 1 年之前
父节点
当前提交
d1ab82f06c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      web/app/Console/Commands/ApachePingWebsitesWithCurl.php

+ 2 - 2
web/app/Console/Commands/ApachePingWebsitesWithCurl.php

@@ -29,9 +29,9 @@ class ApachePingWebsitesWithCurl extends Command
     public function handle()
     {
         $findCustomer = \App\Models\Customer::first();
-        $findHostingPlan = \App\Models\HostingPlan::first();
+        $findHostingPlan = \App\Models\HostingPlan::where('id',2)->first();
 
-        for ($i = 0; $i <= 50000; $i++) {
+        for ($i = 0; $i <= 1000; $i++) {
             $newSubscription = new \App\Models\HostingSubscription();
             $newSubscription->customer_id = $findCustomer->id;
             $newSubscription->hosting_plan_id = $findHostingPlan->id;