From 444d48eaf66aa094a42b9367333c23aa8ceb8c57 Mon Sep 17 00:00:00 2001 From: farhantock Date: Wed, 22 May 2024 19:07:57 +0700 Subject: [PATCH] fix(command): where company_id --- app/Console/Commands/ScheduleHealth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/ScheduleHealth.php b/app/Console/Commands/ScheduleHealth.php index e03cb35..fc06855 100644 --- a/app/Console/Commands/ScheduleHealth.php +++ b/app/Console/Commands/ScheduleHealth.php @@ -42,10 +42,10 @@ class ScheduleHealth extends Command public function handle() { - $projects = Project::whereNull('deleted_at')->get(); + $projects = Project::where('company_id', 5)->get(); $totalProjects = $projects->count(); $updatedProjects = []; - + Log::info($totalProjects); foreach ($projects as $index => $project) { $project->scurve = MasterFunctionsHelper::getSCurve($project->id);